00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00028 #ifndef _RTXCPPXMLSTRING_H_
00029 #define _RTXCPPXMLSTRING_H_
00030
00031 #include "rtxsrc/rtxCommon.h"
00032 #include "rtxsrc/rtxCppBaseType.h"
00033 #include "rtxsrc/rtxPrint.h"
00034
00039 class EXTERNRTX OSXMLStringClass : public OSXMLSTRING, public OSBaseType {
00040 public:
00044 OSXMLStringClass();
00045
00055 OSXMLStringClass (const OSUTF8CHAR* strval,
00056 OSBOOL cdata = FALSE,
00057 OSBOOL ownMemory = FALSE);
00058
00064 OSXMLStringClass (const OSXMLSTRING& str);
00065 OSXMLStringClass (const OSXMLStringClass& str);
00066
00071 virtual ~OSXMLStringClass();
00072
00080 void copyValue (const OSUTF8CHAR* utf8str);
00081
00082 inline void copyValue (const char* cstring) {
00083 copyValue ((const OSUTF8CHAR*) cstring);
00084 }
00085
00093 inline OSBOOL isCDATA () const { return cdata; }
00094
00102 inline void setCDATA (OSBOOL bvalue) { cdata = bvalue; }
00103
00109 inline void print (const char* name) { rtxPrintCharStr (name, value); }
00110
00118 void setValue (const OSUTF8CHAR* utf8str);
00119
00120 inline void setValue (const char* cstring) {
00121 setValue ((const OSUTF8CHAR*) cstring);
00122 }
00123
00124 } ;
00125
00126 #endif