TiXmlText Class Reference

XML text. More...

#include <tinyxml.h>

Inheritance diagram for TiXmlText:

Inheritance graph
[legend]
Collaboration diagram for TiXmlText:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TiXmlText (const char *initValue)
 Constructor for text element.
virtual ~TiXmlText ()
 TiXmlText (const std::string &initValue)
 Constructor.
 TiXmlText (const TiXmlText &copy)
void operator= (const TiXmlText &base)
virtual void Print (FILE *cfile, int depth) const
 All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL mode, std::string in STL mode.
bool CDATA () const
 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 TiXmlTextToText () const
 Cast to a more defined type. Will return null not of the requested type.
virtual TiXmlTextToText ()
 Cast to a more defined type. Will return null not of the requested type.
virtual bool Accept (TiXmlVisitor *content) const
 Walk the XML tree visiting this node and all of its children.

Protected Member Functions

virtual TiXmlNodeClone () const
 [internal use] Creates a new Element and returns it.
void CopyTo (TiXmlText *target) const
bool Blank () const
virtual void StreamIn (std::istream *in, TIXML_STRING *tag)

Private Attributes

bool cdata

Friends

class TiXmlElement


Detailed Description

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().

Definition at line 1204 of file tinyxml.h.


Constructor & Destructor Documentation

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 1212 of file tinyxml.h.

virtual TiXmlText::~TiXmlText (  )  [inline, virtual]

Definition at line 1217 of file tinyxml.h.

TiXmlText::TiXmlText ( const std::string &  initValue  )  [inline]

Constructor.

Definition at line 1221 of file tinyxml.h.

TiXmlText::TiXmlText ( const TiXmlText copy  )  [inline]

Definition at line 1228 of file tinyxml.h.


Member Function Documentation

void TiXmlText::operator= ( const TiXmlText base  )  [inline]

Definition at line 1229 of file tinyxml.h.

void 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 TiXmlBase.

Definition at line 1335 of file tinyxml.cpp.

bool TiXmlText::CDATA (  )  const [inline]

Queries whether this represents text using a CDATA section.

Definition at line 1235 of file tinyxml.h.

void TiXmlText::SetCDATA ( bool  _cdata  )  [inline]

Turns on or off a CDATA representation of text.

Definition at line 1237 of file tinyxml.h.

const char * TiXmlText::Parse ( const char *  p,
TiXmlParsingData data,
TiXmlEncoding  encoding 
) [virtual]

Implements TiXmlBase.

Definition at line 1498 of file tinyxmlparser.cpp.

virtual const TiXmlText* TiXmlText::ToText (  )  const [inline, virtual]

Cast to a more defined type. Will return null not of the requested type.

Reimplemented from TiXmlNode.

Definition at line 1241 of file tinyxml.h.

virtual TiXmlText* TiXmlText::ToText (  )  [inline, virtual]

Cast to a more defined type. Will return null not of the requested type.

Reimplemented from TiXmlNode.

Definition at line 1242 of file tinyxml.h.

bool TiXmlText::Accept ( TiXmlVisitor content  )  const [virtual]

Walk the XML tree visiting this node and all of its children.

Implements TiXmlNode.

Definition at line 1363 of file tinyxml.cpp.

TiXmlNode * TiXmlText::Clone (  )  const [protected, virtual]

[internal use] Creates a new Element and returns it.

Implements TiXmlNode.

Definition at line 1369 of file tinyxml.cpp.

void TiXmlText::CopyTo ( TiXmlText target  )  const [protected]

Definition at line 1356 of file tinyxml.cpp.

bool TiXmlText::Blank (  )  const [protected]

Definition at line 1631 of file tinyxmlparser.cpp.

void TiXmlText::StreamIn ( std::istream *  in,
TIXML_STRING *  tag 
) [protected, virtual]

Implements TiXmlNode.

Definition at line 1467 of file tinyxmlparser.cpp.


Friends And Related Function Documentation

friend class TiXmlElement [friend]

Reimplemented from TiXmlNode.

Definition at line 1206 of file tinyxml.h.


Member Data Documentation

bool TiXmlText::cdata [private]

Definition at line 1260 of file tinyxml.h.


The documentation for this class was generated from the following files:

Generated on Sun Jul 27 17:26:19 2008 for Roadnav by  doxygen 1.5.5