#include <tinyxml.h>
Inheritance diagram for TiXmlText:
Public Member Functions | |
TiXmlText (const char *initValue) | |
Constructor for text element. | |
virtual | ~TiXmlText () |
TiXmlText (const std::string &initValue) | |
Constructor. | |
TiXmlText (const TiXmlText ©) | |
void | operator= (const TiXmlText &base) |
virtual void | Print (FILE *cfile, int depth) const |
Write this text object to a FILE stream. | |
bool | CDATA () |
Queries whether this represents text using a CDATA section. | |
void | SetCDATA (bool _cdata) |
Turns on or off a CDATA representation of text. | |
virtual const char * | Parse (const char *p, TiXmlParsingData *data, TiXmlEncoding encoding) |
virtual const TiXmlText * | ToText () const |
Cast to a more defined type. Will return null not of the requested type. | |
virtual TiXmlText * | ToText () |
Cast to a more defined type. Will return null not of the requested type. | |
Protected Member Functions | |
virtual TiXmlNode * | Clone () const |
[internal use] Creates a new Element and returns it. | |
void | CopyTo (TiXmlText *target) const |
virtual void | StreamOut (TIXML_OSTREAM *out) const |
bool | Blank () const |
virtual void | StreamIn (TIXML_ISTREAM *in, TIXML_STRING *tag) |
Private Attributes | |
bool | cdata |
Friends | |
class | TiXmlElement |
A text node can have 2 ways to output the next. "normal" output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().
|
Constructor for text element. By default, it is treated as normal, encoded text. If you want it be output as a CDATA text element, set the parameter _cdata to 'true' |
|
|
|
Constructor.
|
|
|
|
|
|
Queries whether this represents text using a CDATA section.
|
|
[internal use] Creates a new Element and returns it.
Implements TiXmlNode. |
|
|
|
|
|
Implements TiXmlBase. |
|
Write this text object to a FILE stream.
Implements TiXmlBase. |
|
Turns on or off a CDATA representation of text.
|
|
Implements TiXmlNode. |
|
Implements TiXmlBase. |
|
Cast to a more defined type. Will return null not of the requested type.
Reimplemented from TiXmlNode. |
|
Cast to a more defined type. Will return null not of the requested type.
Reimplemented from TiXmlNode. |
|
Reimplemented from TiXmlNode. |
|
|