GXmlSerializableFloat

GXmlSerializableFloat — Represent any float property to be added as a GXmlAttribute to a GXmlElement

Functions

Types and Values

Description

This object can be used when the property could be removed from serialization, specially if missing on XML have some missing and avoidable.

Functions

gxml_serializable_float_get_value ()

gfloat
gxml_serializable_float_get_value (GXmlSerializableFloat *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 using to double value and then casted to an float 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 GXmlSerializableFloat instance

 

gxml_serializable_float_set_value ()

void
gxml_serializable_float_set_value (GXmlSerializableFloat *self,
                                   gfloat val);

Given float number is parsed to string and then stored.

Parameters

self

the GXmlSerializableFloat instance

 

val

 

 

gxml_serializable_float_new ()

GXmlSerializableFloat *
gxml_serializable_float_new (void);

Types and Values

GXML_TYPE_SERIALIZABLE_FLOAT

#define GXML_TYPE_SERIALIZABLE_FLOAT (gxml_serializable_float_get_type ())

The type for GXmlSerializableFloat.


struct GXmlSerializableFloat

struct GXmlSerializableFloat {
	GXmlSerializableDouble parent_instance;
	GXmlSerializableFloatPrivate * priv;
};

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

This object can be used when the property could be removed from serialization, specially if missing on XML have some missing and avoidable.


struct GXmlSerializableFloatClass

struct GXmlSerializableFloatClass {
	GXmlSerializableDoubleClass parent_class;
};

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

Members