#include <tinyxml.h>
Public Member Functions | |
virtual bool | Accept (TiXmlVisitor *content) const |
bool | CDATA () const |
Queries whether this represents text using a CDATA section. | |
void | operator= (const TiXmlText &base) |
virtual const char * | Parse (const char *p, TiXmlParsingData *data, TiXmlEncoding encoding) |
virtual void | Print (FILE *cfile, int depth) const |
void | SetCDATA (bool _cdata) |
Turns on or off a CDATA representation of text. | |
TiXmlText (const char *initValue) | |
TiXmlText (const TiXmlText ©) | |
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. | |
virtual | ~TiXmlText () |
Protected Member Functions | |
bool | Blank () const |
virtual TiXmlNode * | Clone () const |
[internal use] Creates a new Element and returns it. | |
void | CopyTo (TiXmlText *target) const |
Private Attributes | |
bool | cdata |
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().
rospack_tinyxml::TiXmlText::TiXmlText | ( | const char * | initValue | ) | [inline] |
virtual rospack_tinyxml::TiXmlText::~TiXmlText | ( | ) | [inline, virtual] |
rospack_tinyxml::TiXmlText::TiXmlText | ( | const TiXmlText & | copy | ) | [inline] |
bool rospack_tinyxml::TiXmlText::Accept | ( | TiXmlVisitor * | content | ) | const [virtual] |
Walk the XML tree visiting this node and all of its children.
Implements rospack_tinyxml::TiXmlNode.
Definition at line 1364 of file tinyxml.cpp.
bool rospack_tinyxml::TiXmlText::Blank | ( | ) | const [protected] |
Definition at line 1633 of file tinyxmlparser.cpp.
bool rospack_tinyxml::TiXmlText::CDATA | ( | ) | const [inline] |
TiXmlNode * rospack_tinyxml::TiXmlText::Clone | ( | ) | const [protected, virtual] |
[internal use] Creates a new Element and returns it.
Implements rospack_tinyxml::TiXmlNode.
Definition at line 1370 of file tinyxml.cpp.
void rospack_tinyxml::TiXmlText::CopyTo | ( | TiXmlText * | target | ) | const [protected] |
Definition at line 1357 of file tinyxml.cpp.
void rospack_tinyxml::TiXmlText::operator= | ( | const TiXmlText & | base | ) | [inline] |
const char * rospack_tinyxml::TiXmlText::Parse | ( | const char * | p, |
TiXmlParsingData * | data, | ||
TiXmlEncoding | encoding | ||
) | [virtual] |
Implements rospack_tinyxml::TiXmlBase.
Definition at line 1500 of file tinyxmlparser.cpp.
void rospack_tinyxml::TiXmlText::Print | ( | FILE * | cfile, |
int | depth | ||
) | const [virtual] |
All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL mode, std::string in STL mode.) Either or both cfile and str can be null.
This is a formatted print, and will insert tabs and newlines.
(For an unformatted stream, use the << operator.)
Implements rospack_tinyxml::TiXmlBase.
Definition at line 1336 of file tinyxml.cpp.
void rospack_tinyxml::TiXmlText::SetCDATA | ( | bool | _cdata | ) | [inline] |
virtual const TiXmlText* rospack_tinyxml::TiXmlText::ToText | ( | ) | const [inline, virtual] |
Cast to a more defined type. Will return null not of the requested type.
Reimplemented from rospack_tinyxml::TiXmlNode.
virtual TiXmlText* rospack_tinyxml::TiXmlText::ToText | ( | ) | [inline, virtual] |
Cast to a more defined type. Will return null not of the requested type.
Reimplemented from rospack_tinyxml::TiXmlNode.
friend class TiXmlElement [friend] |
Reimplemented from rospack_tinyxml::TiXmlNode.
bool rospack_tinyxml::TiXmlText::cdata [private] |