Logo Search packages:      
Sourcecode: lame version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends

TiXmlUnknown Class Reference

#include <tinyxml.h>

Inheritance diagram for TiXmlUnknown:
Inheritance graph
[legend]
Collaboration diagram for TiXmlUnknown:
Collaboration graph
[legend]

List of all members.

Public Types

enum  NodeType {
  DOCUMENT, ELEMENT, COMMENT, UNKNOWN,
  TEXT, DECLARATION, TYPECOUNT
}

Public Member Functions

void Clear ()
 Delete all the children of this node. Does not affect 'this'.
virtual TiXmlNodeClone () const
TiXmlNodeFirstChild () const
 The first child of this node. Will be null if there are no children.
TiXmlNodeFirstChild (const std::string &value) const
 The first child of this node with the matching 'value'. Will be null if none found.
TiXmlElementFirstChildElement () const
 Convenience function to get through elements.
TiXmlElementFirstChildElement (const std::string &value) const
 Convenience function to get through elements.
TiXmlDocumentGetDocument () const
TiXmlNodeInsertAfterChild (TiXmlNode *afterThis, const TiXmlNode &addThis)
TiXmlNodeInsertBeforeChild (TiXmlNode *beforeThis, const TiXmlNode &addThis)
TiXmlNodeInsertEndChild (const TiXmlNode &addThis)
TiXmlNodeIterateChildren (const std::string &value, TiXmlNode *previous) const
 This flavor of IterateChildren searches for children with a particular 'value'.
TiXmlNodeIterateChildren (TiXmlNode *previous) const
 The last child of this node matching 'value'. Will be null if there are no children.
TiXmlNodeLastChild () const
TiXmlNodeLastChild (const std::string &value) const
 The last child of this node. Will be null if there are no children.
TiXmlNodeNextSibling () const
 Navigate to a sibling node.
TiXmlNodeNextSibling (const std::string &) const
 Navigate to a sibling node with the given 'value'.
TiXmlElementNextSiblingElement () const
TiXmlElementNextSiblingElement (const std::string &) const
bool NoChildren () const
 Returns true if this node has no children.
TiXmlNodeParent () const
 One step up the DOM.
TiXmlNodePreviousSibling () const
 Navigate to a sibling node.
TiXmlNodePreviousSibling (const std::string &) const
 Navigate to a sibling node.
virtual void Print (FILE *cfile, int depth) const
bool RemoveChild (TiXmlNode *removeThis)
 Delete a child of this node.
TiXmlNodeReplaceChild (TiXmlNode *replaceThis, const TiXmlNode &withThis)
void SetValue (const std::string &_value)
virtual void StreamIn (std::istream *in, std::string *tag)
virtual void StreamOut (std::ostream *out) const
TiXmlCommentToComment () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlDeclarationToDeclaration () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlDocumentToDocument () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlElementToElement () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlTextToText () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlUnknownToUnknown () const
 Cast to a more defined type. Will return null not of the requested type.
virtual int Type () const
 Query the type (as an enumerated value, above) of this node.
const std::string & Value () const

Static Public Member Functions

static bool IsWhiteSpaceCondensed ()
 Return the current white space setting.
static void SetCondenseWhiteSpace (bool condense)

Protected Types

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_STRING_COUNT
}

Protected Member Functions

void CopyToClone (TiXmlNode *target) const
TiXmlNodeIdentify (const char *start)
TiXmlNodeLinkEndChild (TiXmlNode *addThis)
virtual const char * Parse (const char *p)

Static Protected Member Functions

static const char * GetChar (const char *p, char *value)
static const char * GetEntity (const char *in, char *value)
static bool IsWhiteSpace (int c)
static void PutString (const std::string &str, std::ostream *stream)
static const char * ReadName (const char *, std::string *name)
static const char * ReadText (const char *in, std::string *text, bool ignoreWhiteSpace, const char *endTag, bool ignoreCase)
static const char * SkipWhiteSpace (const char *)
static bool StreamTo (std::istream *in, int character, std::string *tag)
static bool StreamWhiteSpace (std::istream *in, std::string *tag)
static bool StringEqual (const char *p, const char *endTag, bool ignoreCase)

Protected Attributes

TiXmlNodefirstChild
TiXmlNodelastChild
TiXmlNodenext
TiXmlNodeparent
TiXmlNodeprev
NodeType type
std::string value

Static Protected Attributes

static const char * errorString [TIXML_ERROR_STRING_COUNT]

Friends

std::ostream & operator<< (std::ostream &out, const TiXmlNode &base)
std::istream & operator>> (std::istream &in, TiXmlNode &base)

Detailed Description

Any tag that tinyXml doesn't recognize is save as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.

Definition at line 703 of file tinyxml.h.


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

Generated by  Doxygen 1.6.0   Back to index