Coconut XML Framework
beta
|
00001 00008 #ifndef CNXMLPROPUTIL_H 00009 #define CNXMLPROPUTIL_H 00010 00011 #include "CNXMLForwarders.h" 00012 #include "CNXMLDecodeError.h" 00013 #include <Coconut/Coconut.h> 00014 #include <libxml/tree.h> 00015 #include <stdint.h> 00016 00023 void 00024 CNXMLSetUInt32Prop(xmlNodePtr dst, const xmlChar * attrname, uint32_t attrval) ; 00025 00035 CNBoolean 00036 CNXMLUInt32Prop(uint32_t * dst, xmlNodePtr src, const xmlChar * attrname, struct CNXMLDecodeError * error) ; 00037 00044 void 00045 CNXMLSetUInt64Prop(xmlNodePtr dst, const xmlChar * attrname, uint64_t attrval) ; 00046 00056 CNBoolean 00057 CNXMLUInt64Prop(uint64_t * dst, xmlNodePtr src, const xmlChar * attrname, struct CNXMLDecodeError * error) ; 00058 00065 void 00066 CNXMLSetDoubleProp(xmlNodePtr dst, const xmlChar * attrname, double attrval) ; 00067 00077 CNBoolean 00078 CNXMLDoubleProp(double * dst, xmlNodePtr src, const xmlChar * attrname, struct CNXMLDecodeError * error) ; 00079 00086 void 00087 CNXMLSetStringProp(xmlNodePtr dst, const xmlChar * attrname, const struct CNString * attrval) ; 00088 00095 static inline void 00096 CNXMLSetCStringProp(xmlNodePtr dst, const xmlChar * attrname, const xmlChar * attrval) 00097 { 00098 xmlSetProp(dst, attrname, attrval) ; 00099 } 00100 00110 CNBoolean 00111 CNXMLCStringProp(const xmlChar ** dst, xmlNodePtr src, const xmlChar * attrname, struct CNXMLDecodeError * error) ; 00112 00113 #endif /* CNXMLPROPUTIL_H */ 00114