GXmlSerializableInt

GXmlSerializableInt — Represent any boolean property to be added as a GXmlAttribute to a GXmlElement

Functions

Types and Values

Description

Functions

gxml_serializable_int_get_value ()

gint
gxml_serializable_int_get_value (GXmlSerializableInt *self);

Parse the stored value, from the XML property, to a gint. This parsing may is different from the actual stored string.

The stored value, is parsed as double value and then casted to an integer before return, this make flexible on stored values in XML and parsed without errors, but they could defere from the value returned by this method.

Parameters

self

the GXmlSerializableInt instance

 

gxml_serializable_int_set_value ()

void
gxml_serializable_int_set_value (GXmlSerializableInt *self,
                                 gint val);

Given integer is parsed to string and then stored.

Parameters

self

the GXmlSerializableInt instance

 

val

 

 

gxml_serializable_int_new ()

GXmlSerializableInt *
gxml_serializable_int_new (void);

Types and Values

GXML_TYPE_SERIALIZABLE_INT

#define GXML_TYPE_SERIALIZABLE_INT (gxml_serializable_int_get_type ())

The type for GXmlSerializableInt.


struct GXmlSerializableInt

struct GXmlSerializableInt {
	GXmlSerializableDouble parent_instance;
	GXmlSerializableIntPrivate * priv;
};

Represent any boolean property to be added as a GXmlAttribute to a GXmlElement


struct GXmlSerializableIntClass

struct GXmlSerializableIntClass {
	GXmlSerializableDoubleClass parent_class;
};

The class structure for GXML_TYPE_SERIALIZABLE_INT. All the fields in this structure are private and should never be accessed directly.

Members