TiXmlText Class Reference

XML text. More...

#include <edelib/TiXml.h>

Inheritance diagram for TiXmlText:

TiXmlNode TiXmlBase List of all members.

Public Member Functions

 TiXmlText (const char *initValue)
 TiXmlText (const TiXmlText &copy)
void operator= (const TiXmlText &base)
virtual void Print (FILE *cfile, int depth) const
bool CDATA () const
void SetCDATA (bool _cdata)
virtual const TiXmlTextToText () const
virtual TiXmlTextToText ()
virtual bool Accept (TiXmlVisitor *content) const

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


Constructor & Destructor Documentation

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'

TiXmlText ( const TiXmlText copy  )  [inline]

Constructor accepting another TiXmlText


Member Function Documentation

void operator= ( const TiXmlText base  )  [inline]

Accept another TiXmlText

virtual void Print ( FILE *  cfile,
int  depth 
) const [virtual]

Write this text object to a FILE stream

Implements TiXmlBase.

bool CDATA (  )  const [inline]

Queries whether this represents text using a CDATA section

void SetCDATA ( bool  _cdata  )  [inline]

Turns on or off a CDATA representation of text

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

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

Reimplemented from TiXmlNode.

virtual TiXmlText* ToText (  )  [inline, virtual]

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

Reimplemented from TiXmlNode.

virtual bool Accept ( TiXmlVisitor content  )  const [virtual]

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

Implements TiXmlNode.


The documentation for this class was generated from the following file:
Generated on Wed Dec 16 14:31:54 2009 for edelib by  doxygen 1.5.2