uFormat Framework
alpha
|
00001 00008 #ifndef UFTEXT_H 00009 #define UFTEXT_H 00010 00011 #include <CoconutXML/CoconutXML.h> 00012 00016 struct uFText 00017 { 00019 struct CNXMLObject superClass ; 00021 struct CNString * text ; 00022 } ; 00023 00031 struct uFText * 00032 uFAllocateText(struct CNString * text, struct CNResource * resource) ; 00033 00038 static inline void 00039 uFRetainText(struct uFText * dst) 00040 { 00041 CNRetainXMLObject(&(dst->superClass)) ; 00042 } 00043 00048 static inline void 00049 uFReleaseText(struct uFText * dst) 00050 { 00051 CNReleaseXMLObject(&(dst->superClass)) ; 00052 } 00053 00059 static inline struct CNXMLObject * 00060 uFCastTextToXMLObject(struct uFText * src) 00061 { 00062 return &(src->superClass) ; 00063 } 00064 00071 CNBoolean 00072 uFIsTextXMLNode(xmlNodePtr src) ; 00073 00080 static inline xmlNodePtr 00081 uFEncodeText(const struct uFText * src) 00082 { 00083 return CNEncodeXMLObject(&(src->superClass)) ; 00084 } 00085 00091 static inline struct CNString * 00092 uFContextInText(const struct uFText * src) 00093 { 00094 return src->text ; 00095 } 00096 00097 #endif /* UFTEXT_H */ 00098