TiXmlText Class Reference

#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)
virtual ~TiXmlText ()
 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

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

References cdata, and TiXmlNode::SetValue().

Referenced by Clone().

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

Definition at line 1063 of file tinyxml.h.

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

Definition at line 1074 of file tinyxml.h.

References CopyTo().


Member Function Documentation

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

Definition at line 1075 of file tinyxml.h.

References CopyTo().

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

Write this text object to a FILE stream.

Implements TiXmlBase.

Definition at line 1393 of file tinyxml.cpp.

References cdata, TiXmlBase::PutString(), TIXML_STRING, and TiXmlNode::value.

bool TiXmlText::CDATA (  )  [inline]

Queries whether this represents text using a CDATA section.

Definition at line 1081 of file tinyxml.h.

References cdata.

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

Turns on or off a CDATA representation of text.

Definition at line 1083 of file tinyxml.h.

References cdata.

Referenced by TiXmlNode::Identify().

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

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

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

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

Implements TiXmlNode.

Definition at line 1435 of file tinyxml.cpp.

References CopyTo(), and TiXmlText().

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

Definition at line 1428 of file tinyxml.cpp.

References cdata, and TiXmlNode::CopyTo().

Referenced by Clone(), operator=(), and TiXmlText().

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

Implements TiXmlBase.

Definition at line 1415 of file tinyxml.cpp.

References cdata, TiXmlBase::PutString(), and TiXmlNode::value.

bool TiXmlText::Blank (  )  const [protected]

Definition at line 1573 of file tinyxmlparser.cpp.

References TiXmlBase::IsWhiteSpace(), and TiXmlNode::value.

Referenced by TiXmlElement::ReadValue().


Friends And Related Function Documentation

friend class TiXmlElement [friend]

Reimplemented from TiXmlNode.

Definition at line 1052 of file tinyxml.h.


Member Data Documentation

bool TiXmlText::cdata [private]

Definition at line 1103 of file tinyxml.h.

Referenced by CDATA(), CopyTo(), Parse(), Print(), SetCDATA(), StreamOut(), and TiXmlText().


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

Generated on Tue May 22 06:00:31 2012 for cpp by  doxygen 1.5.6