OSXMLStringClass Class Reference
XML string. More...
#include <rtxCppXmlString.h>
Inheritance diagram for OSXMLStringClass:

Public Member Functions | |
| OSXMLStringClass () | |
| The default constructor creates an empty string. | |
| OSXMLStringClass (const OSUTF8CHAR *strval, OSBOOL cdata_=FALSE) | |
| This constructor initializes the string to contain the value. | |
| OSXMLStringClass (const OSUTF8CHAR *strval, size_t nbytes, OSBOOL cdata_=FALSE) | |
| This constructor initializes the string to contain the value. | |
| OSXMLStringClass (const char *strval, OSBOOL cdata_=FALSE) | |
| This constructor initializes the string to contain the value. | |
| OSXMLStringClass (const OSXMLSTRING &str) | |
| Copy constructor. | |
| OSXMLStringClass (const OSXMLStringClass &str) | |
| Copy constructor. | |
| virtual | ~OSXMLStringClass () |
| The destructor frees string memory if the memory ownership flag is set. | |
| void | appendValue (const OSUTF8CHAR *utf8str, size_t nbytes=0) |
| This method copies the given string value to the end of internal string storage variable. | |
| OSRTBaseType * | clone () const |
| Clone method. | |
| void | copyValue (const OSUTF8CHAR *utf8str, size_t nbytes=0) |
| This method copies the given string value to the internal string storage variable. | |
| void | copyValue (const char *cstring, size_t nbytes=0) |
| This method copies the given string value to the internal string storage variable. | |
| const char * | c_str () const |
| This method returns the pointer to C null terminated string. | |
| virtual int | decodeXML (OSCTXT *pctxt) |
| This method decodes XML content at the current stream/buffer position into this string object. | |
| virtual int | encodeXML (OSRTMessageBufferIF &msgbuf, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This method encodes the data in this string object into XML content in the encode data stream. | |
| const OSUTF8CHAR * | getValue () const |
| This method returns a pointer to the UTF-8 null terminated string. | |
| OSBOOL | isCDATA () const |
| This method returns the value of the cdata member variable. | |
| void | setCDATA (OSBOOL bvalue) |
| This method sets the value of the cdata member variable. | |
| void | print (const char *name) |
| This method prints the string value to standard output. | |
| void | setValue (const OSUTF8CHAR *utf8str, size_t nbytes=0) |
| This method sets the string value to the given string. | |
| void | setValue (const char *cstring, size_t nbytes=0) |
| This method sets the string value to the given string. | |
| void | setValue (OSRTMemBuf &membuf) |
| This method sets the string value to the value of the data in the given memory buffer object. | |
| OSXMLStringClass & | operator= (const OSXMLStringClass &original) |
| Assignment operator. | |
| OSXMLStringClass & | operator= (const char *original) |
| Assignment operator for C strings. | |
| OSXMLStringClass & | operator= (const OSUTF8CHAR *original) |
| Assignment operator for C UTF-8 strings. | |
| operator const char * () const | |
| String to C const char* type conversion operator. | |
| operator const OSUTF8CHAR * () const | |
| String to C const OSUTF8CHAR* type conversion operator. | |
| int | length () |
| This method returns the number of characters. | |
| int | size () |
| This method returns the number of bytes. | |
Protected Member Functions | |
| void | newString (const char *pString, size_t nbytes=0) |
| void | xstrcat (OSUTF8CHAR *dststr, const OSUTF8CHAR *srcstr) |
Protected Attributes | |
| OSUTF8CHAR * | value |
| OSBOOL | cdata |
| size_t | mCapacityIncrement |
| size_t | mCurrentBufferSize |
| size_t | mCurrentStringSize |
Detailed Description
XML string.This is the base class for generated C++ data type classes for XSD string types (string, token, NMTOKEN, etc.).
Definition at line 46 of file rtxCppXmlString.h.
Constructor & Destructor Documentation
|
||||||||||||
|
This constructor initializes the string to contain the value. A deep-copy of the given value is done.
|
|
||||||||||||||||
|
This constructor initializes the string to contain the value. It copies up to the given number of bytes from the source string. A deep-copy of the given value is done.
|
|
||||||||||||
|
This constructor initializes the string to contain the value. A deep-copy of the given value is done.
|
|
|
Copy constructor.
|
|
|
Copy constructor.
|
Member Function Documentation
|
||||||||||||
|
This method copies the given string value to the end of internal string storage variable. A deep-copy of the given value is done; the class will delete this memory when the object is deleted.
|
|
|
Clone method. Creates a copied instance and returns pointer to OSRTBaseType. Reimplemented from OSRTBaseType. Definition at line 144 of file rtxCppXmlString.h. |
|
||||||||||||
|
This method copies the given string value to the internal string storage variable. A deep-copy of the given value is done; the class will delete this memory when the object is deleted.
Definition at line 166 of file rtxCppXmlString.h. |
|
||||||||||||
|
This method copies the given string value to the internal string storage variable. A deep-copy of the given value is done; the class will delete this memory when the object is deleted.
|
|
|
This method decodes XML content at the current stream/buffer position into this string object. This method is normally overridden by a decodeXML method in a generated class.
|
|
||||||||||||||||
|
This method encodes the data in this string object into XML content in the encode data stream. This method is normally overridden by an encodeXML method in a generated class.
|
|
|
This method returns the value of the cdata member variable. This indicates if this string should be encoded as a CDATA section in an XML document.
Definition at line 219 of file rtxCppXmlString.h. |
|
|
This method prints the string value to standard output.
Definition at line 235 of file rtxCppXmlString.h. |
|
|
This method sets the value of the cdata member variable. This indicates if this string should be encoded as a CDATA section in an XML document.
Definition at line 228 of file rtxCppXmlString.h. |
|
|
This method sets the string value to the value of the data in the given memory buffer object. A deep-copy of the value is done.
Definition at line 266 of file rtxCppXmlString.h. References OSRTMemBuf::getData(), and OSRTMemBuf::getDataLen(). |
|
||||||||||||
|
This method sets the string value to the given string. A deep-copy of the given value is done.
Definition at line 255 of file rtxCppXmlString.h. |
|
||||||||||||
|
This method sets the string value to the given string. A deep-copy of the given value is done.
|
The documentation for this class was generated from the following file:
