edelib  2.1.0
Public Member Functions | Friends | List of all members
TiXmlText Class Reference

XML text. More...

#include <edelib/TiXml.h>

Inheritance diagram for TiXmlText:
TiXmlNode TiXmlBase

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
 
- Public Member Functions inherited from TiXmlNode
const char * Value () const
 
void SetValue (const char *_value)
 
void Clear ()
 
TiXmlNodeParent ()
 
const TiXmlNodeParent () const
 
const TiXmlNodeFirstChild () const
 
TiXmlNodeFirstChild ()
 
const TiXmlNodeFirstChild (const char *value) const
 
TiXmlNodeFirstChild (const char *_value)
 
const TiXmlNodeLastChild () const
 
TiXmlNodeLastChild ()
 
const TiXmlNodeLastChild (const char *value) const
 
TiXmlNodeLastChild (const char *_value)
 
const TiXmlNodeIterateChildren (const TiXmlNode *previous) const
 
TiXmlNodeIterateChildren (const TiXmlNode *previous)
 
const TiXmlNodeIterateChildren (const char *value, const TiXmlNode *previous) const
 
TiXmlNodeIterateChildren (const char *_value, const TiXmlNode *previous)
 
TiXmlNodeInsertEndChild (const TiXmlNode &addThis)
 
TiXmlNodeLinkEndChild (TiXmlNode *addThis)
 
TiXmlNodeInsertBeforeChild (TiXmlNode *beforeThis, const TiXmlNode &addThis)
 
TiXmlNodeInsertAfterChild (TiXmlNode *afterThis, const TiXmlNode &addThis)
 
TiXmlNodeReplaceChild (TiXmlNode *replaceThis, const TiXmlNode &withThis)
 
bool RemoveChild (TiXmlNode *removeThis)
 
const TiXmlNodePreviousSibling () const
 
TiXmlNodePreviousSibling ()
 
const TiXmlNodePreviousSibling (const char *) const
 
TiXmlNodePreviousSibling (const char *_prev)
 
const TiXmlNodeNextSibling () const
 
TiXmlNodeNextSibling ()
 
const TiXmlNodeNextSibling (const char *) const
 
TiXmlNodeNextSibling (const char *_next)
 
const TiXmlElementNextSiblingElement () const
 
TiXmlElementNextSiblingElement ()
 
const TiXmlElementNextSiblingElement (const char *) const
 
TiXmlElementNextSiblingElement (const char *_next)
 
const TiXmlElementFirstChildElement () const
 
TiXmlElementFirstChildElement ()
 
const TiXmlElementFirstChildElement (const char *_value) const
 
TiXmlElementFirstChildElement (const char *_value)
 
int Type () const
 
const TiXmlDocumentGetDocument () const
 
TiXmlDocumentGetDocument ()
 
bool NoChildren () const
 
virtual const TiXmlDocumentToDocument () const
 
virtual const TiXmlElementToElement () const
 
virtual const TiXmlCommentToComment () const
 
virtual const TiXmlUnknownToUnknown () const
 
virtual const TiXmlDeclarationToDeclaration () const
 
virtual TiXmlDocumentToDocument ()
 
virtual TiXmlElementToElement ()
 
virtual TiXmlCommentToComment ()
 
virtual TiXmlUnknownToUnknown ()
 
virtual TiXmlDeclarationToDeclaration ()
 
virtual TiXmlNodeClone () const =0
 
- Public Member Functions inherited from TiXmlBase
int Row () const
 
int Column () const
 
void SetUserData (void *user)
 
void * GetUserData ()
 
const void * GetUserData () const
 

Friends

class TiXmlElement
 

Additional Inherited Members

- Public Types inherited from TiXmlNode
enum  NodeType {
  DOCUMENT, ELEMENT, COMMENT, UNKNOWN,
  TEXT, DECLARATION, TYPECOUNT
}
 
- Public Types inherited from TiXmlBase
enum  {
  TIXML_NO_ERROR = 0, TIXML_ERROR, TIXML_ERROR_OPENING_FILE, TIXML_ERROR_OUT_OF_MEMORY,
  TIXML_ERROR_PARSING_ELEMENT, TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME, TIXML_ERROR_READING_ELEMENT_VALUE, TIXML_ERROR_READING_ATTRIBUTES,
  TIXML_ERROR_PARSING_EMPTY, TIXML_ERROR_READING_END_TAG, TIXML_ERROR_PARSING_UNKNOWN, TIXML_ERROR_PARSING_COMMENT,
  TIXML_ERROR_PARSING_DECLARATION, TIXML_ERROR_DOCUMENT_EMPTY, TIXML_ERROR_EMBEDDED_NULL, TIXML_ERROR_PARSING_CDATA,
  TIXML_ERROR_DOCUMENT_TOP_ONLY, TIXML_ERROR_STRING_COUNT
}
 
- Static Public Member Functions inherited from TiXmlBase
static void SetCondenseWhiteSpace (bool condense)
 
static bool IsWhiteSpaceCondensed ()
 
- Protected Member Functions inherited from TiXmlNode
 TiXmlNode (NodeType _type)
 
void CopyTo (TiXmlNode *target) const
 
TiXmlNodeIdentify (const char *start, TiXmlEncoding encoding)
 
- Static Protected Member Functions inherited from TiXmlBase
static const char * ReadName (const char *p, edelib::String *name, TiXmlEncoding encoding)
 
static const char * ReadText (const char *in, edelib::String *text, bool ignoreWhiteSpace, const char *endTag, bool ignoreCase, TiXmlEncoding encoding)
 
static const char * GetEntity (const char *in, char *value, int *length, TiXmlEncoding encoding)
 
static const char * GetChar (const char *p, char *_value, int *length, TiXmlEncoding encoding)
 
static void PutString (const edelib::String &str, edelib::String *out)
 
static bool StringEqual (const char *p, const char *endTag, bool ignoreCase, TiXmlEncoding encoding)
 
static int IsAlpha (unsigned char anyByte, TiXmlEncoding encoding)
 
static int IsAlphaNum (unsigned char anyByte, TiXmlEncoding encoding)
 
static int ToLower (int v, TiXmlEncoding encoding)
 
static void ConvertUTF32ToUTF8 (unsigned long input, char *output, int *length)
 
- Protected Attributes inherited from TiXmlBase
TiXmlCursor location
 
void * userData
 
- Static Protected Attributes inherited from TiXmlBase
static const char * errorString [TIXML_ERROR_STRING_COUNT]
 

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

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 const TiXmlText* ToText ( ) const
inlinevirtual

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

Reimplemented from TiXmlNode.

virtual TiXmlText* ToText ( )
inlinevirtual

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: