Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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


Protected Member Functions

virtual TiXmlNodeClone () 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
virtual void StreamIn (TIXML_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().


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'

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

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

Constructor.

TiXmlText::TiXmlText const TiXmlText copy  )  [inline]
 


Member Function Documentation

bool TiXmlText::Blank  )  const [protected]
 

bool TiXmlText::CDATA  )  [inline]
 

Queries whether this represents text using a CDATA section.

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

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

Implements TiXmlNode.

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

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

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

Implements TiXmlBase.

void TiXmlText::Print FILE *  cfile,
int  depth
const [virtual]
 

Write this text object to a FILE stream.

Implements TiXmlBase.

void TiXmlText::SetCDATA bool  _cdata  )  [inline]
 

Turns on or off a CDATA representation of text.

void TiXmlText::StreamIn TIXML_ISTREAM *  in,
TIXML_STRING *  tag
[protected, virtual]
 

Implements TiXmlNode.

void TiXmlText::StreamOut TIXML_OSTREAM *  out  )  const [protected, virtual]
 

Implements TiXmlBase.

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

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

Reimplemented from TiXmlNode.

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.


Friends And Related Function Documentation

friend class TiXmlElement [friend]
 

Reimplemented from TiXmlNode.


Member Data Documentation

bool TiXmlText::cdata [private]
 


The documentation for this class was generated from the following files:
Generated for TinyXPath by doxygen SourceForge Logo