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'

References TiXmlNode::SetValue().

TiXmlText ( const TiXmlText copy  )  [inline]

Constructor accepting another TiXmlText

References TiXmlNode::CopyTo().


Member Function Documentation

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

Reimplemented from TiXmlNode.

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.


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

Generated on 7 May 2013 for edelib by  doxygen 1.6.1