most of UI elements in ZFFramework is also serializable, and it's easy to serialize from and to xml format
here's a quick example to see the xml output format:
parent->child(child)->c_sizeFill();
child->label()->text("button");
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
ZFOutput ZFOutputForString(zfstring &s)
create a output callback to output to a zfstring
#define ZFLogTrim(...)
see ZFLog
Definition ZFLog.h:80
ZFSerializableData ZFObjectToData(ZFObject *obj, zfbool *outSuccess=zft_zfnull, zfstring *outErrorHint=zft_zfnull, ZFSerializable *refOwner=zft_zfnull)
see ZFObjectFromDataT
zfauto ZFObjectFromData(const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
see ZFObjectFromDataT
ZFLIB_ZFAlgorithm zfbool ZFSerializableDataToXml(ZFXml &xmlElement, const ZFSerializableData &serializableData, zfstring *outErrorHint=(zft_zfnull), ZFSerializableData *outErrorPos=(zft_zfnull))
print serializable to xml formated data
ZFLIB_ZFAlgorithm zfbool ZFSerializableDataFromXml(ZFSerializableData &serializableData, const ZFXml &xmlElement, zfstring *outErrorHint=(zft_zfnull), ZFXml *outErrorPos=(zft_zfnull))
parse xml formated data to serializable
ZFSerializable's data container, see ZFSerializable.
Definition ZFSerializableData.h:74
a ZFObject holder which would release content object automatically when destroyed
Definition zfautoFwd.h:34
util class to alloc and hold ZFObject type
Definition ZFObjectAutoPtr.h:157
serialized data:
re-serialized object:
base class of all layout param in ZFUIView
Definition ZFUIViewType.h:123
2D size
Definition ZFUIViewType.h:41
view to display plain text
Definition ZFUITextView.h:21
base class of all UI views
Definition ZFUIView.h:93