edelib 2.0.0
|
XML text. More...
#include </usr/src/RPM/BUILD/edelib-2.0/edelib/TiXml.h>
Public Member Functions | |
TiXmlText (const char *initValue) | |
TiXmlText (const TiXmlText ©) | |
void | operator= (const TiXmlText &base) |
virtual void | Print (FILE *cfile, int depth) const |
bool | CDATA () const |
void | SetCDATA (bool _cdata) |
virtual const TiXmlText * | ToText () const |
virtual TiXmlText * | ToText () |
virtual bool | Accept (TiXmlVisitor *content) const |
Friends | |
class | TiXmlElement |
XML text.
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().
TiXmlText | ( | const char * | initValue | ) | [inline] |
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'
References TiXmlNode::SetValue().
Constructor accepting another TiXmlText
References TiXmlNode::CopyTo().
virtual bool Accept | ( | TiXmlVisitor * | content | ) | const [virtual] |
Walk the XML tree visiting this node and all of its children.
Implements TiXmlNode.
bool CDATA | ( | ) | const [inline] |
Queries whether this represents text using a CDATA section
void operator= | ( | const TiXmlText & | base | ) | [inline] |
Accept another TiXmlText
References TiXmlNode::CopyTo().
virtual void Print | ( | FILE * | cfile, |
int | depth | ||
) | const [virtual] |
Write this text object to a FILE stream
Implements TiXmlBase.
void SetCDATA | ( | bool | _cdata | ) | [inline] |
Turns on or off a CDATA representation of text
virtual TiXmlText* ToText | ( | ) | [inline, virtual] |
Cast to a more defined type. Will return null not of the requested type.
Reimplemented from TiXmlNode.
virtual const TiXmlText* ToText | ( | ) | const [inline, virtual] |
Cast to a more defined type. Will return null not of the requested type.
Reimplemented from TiXmlNode.