#include <tinyxml.h>


Public Member Functions | |
| TiXmlText (const char *initValue) | |
| virtual | ~TiXmlText () |
| 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 |
Private Attributes | |
| bool | cdata |
Friends | |
| class | TiXmlElement |
Definition at line 1050 of file tinyxml.h.
| TiXmlText::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'
Definition at line 1058 of file tinyxml.h.
References cdata, and TiXmlNode::SetValue().
Referenced by Clone().
| TiXmlText::TiXmlText | ( | const TiXmlText & | copy | ) | [inline] |
| void TiXmlText::operator= | ( | const TiXmlText & | base | ) | [inline] |
| void TiXmlText::Print | ( | FILE * | cfile, | |
| int | depth | |||
| ) | const [virtual] |
Write this text object to a FILE stream.
Implements TiXmlBase.
Definition at line 1393 of file tinyxml.cpp.
References cdata, TiXmlBase::PutString(), TIXML_STRING, and TiXmlNode::value.
| bool TiXmlText::CDATA | ( | ) | [inline] |
| void TiXmlText::SetCDATA | ( | bool | _cdata | ) | [inline] |
Turns on or off a CDATA representation of text.
Definition at line 1083 of file tinyxml.h.
References cdata.
Referenced by TiXmlNode::Identify().
| const char * TiXmlText::Parse | ( | const char * | p, | |
| TiXmlParsingData * | data, | |||
| TiXmlEncoding | encoding | |||
| ) | [virtual] |
Implements TiXmlBase.
Definition at line 1440 of file tinyxmlparser.cpp.
References cdata, TiXmlParsingData::Cursor(), TiXmlNode::GetDocument(), TiXmlBase::location, TiXmlBase::ReadText(), TiXmlDocument::SetError(), TiXmlParsingData::Stamp(), TiXmlBase::StringEqual(), TiXmlBase::TIXML_ERROR_PARSING_CDATA, TIXML_STRING, and TiXmlNode::value.
Referenced by TiXmlElement::ReadValue().
| virtual const TiXmlText* TiXmlText::ToText | ( | ) | const [inline, virtual] |
| virtual TiXmlText* TiXmlText::ToText | ( | ) | [inline, virtual] |
| TiXmlNode * TiXmlText::Clone | ( | ) | const [protected, virtual] |
[internal use] Creates a new Element and returns it.
Implements TiXmlNode.
Definition at line 1435 of file tinyxml.cpp.
References CopyTo(), and TiXmlText().
| void TiXmlText::CopyTo | ( | TiXmlText * | target | ) | const [protected] |
Definition at line 1428 of file tinyxml.cpp.
References cdata, and TiXmlNode::CopyTo().
Referenced by Clone(), operator=(), and TiXmlText().
| void TiXmlText::StreamOut | ( | TIXML_OSTREAM * | out | ) | const [protected, virtual] |
Implements TiXmlBase.
Definition at line 1415 of file tinyxml.cpp.
References cdata, TiXmlBase::PutString(), and TiXmlNode::value.
| bool TiXmlText::Blank | ( | ) | const [protected] |
Definition at line 1573 of file tinyxmlparser.cpp.
References TiXmlBase::IsWhiteSpace(), and TiXmlNode::value.
Referenced by TiXmlElement::ReadValue().
friend class TiXmlElement [friend] |
bool TiXmlText::cdata [private] |
Definition at line 1103 of file tinyxml.h.
Referenced by CDATA(), CopyTo(), Parse(), Print(), SetCDATA(), StreamOut(), and TiXmlText().
1.5.6