GXmlSerializableBool

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

Functions

Types and Values

Description

Functions

gxml_serializable_bool_get_value ()

gboolean
gxml_serializable_bool_get_value (GXmlSerializableBool *self);

Parse the stored value, from the XML property, to a gint. This parsing may is different from the actual stored string. If can't be parsed to a valid boolean, this method will always return false.

Parameters

self

the GXmlSerializableBool instance

 

gxml_serializable_bool_set_value ()

void
gxml_serializable_bool_set_value (GXmlSerializableBool *self,
                                  gboolean val);

Given boolean value is parsed to string and then stored.

Parameters

self

the GXmlSerializableBool instance

 

val

 

 

gxml_serializable_bool_to_string ()

gchar *
gxml_serializable_bool_to_string (GXmlSerializableBool *self);

Parse actual stored string to a boolean and returns the result. See gxml_serializable_bool_get_value()

Parameters

self

the GXmlSerializableBool instance

 

gxml_serializable_bool_new ()

GXmlSerializableBool *
gxml_serializable_bool_new (void);

Types and Values

GXML_TYPE_SERIALIZABLE_BOOL

#define GXML_TYPE_SERIALIZABLE_BOOL (gxml_serializable_bool_get_type ())

The type for GXmlSerializableBool.


struct GXmlSerializableBool

struct GXmlSerializableBool {
	GObject parent_instance;
	GXmlSerializableBoolPrivate * priv;
};

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


struct GXmlSerializableBoolClass

struct GXmlSerializableBoolClass {
	GObjectClass parent_class;
};

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

Members