Main Page   Class Hierarchy   Compound List   File List   Compound Members  

TiXmlBase Class Reference

TiXmlBase is a base class for every class in TinyXml. More...

#include <tinyxml.h>

Inheritance diagram for TiXmlBase::

TiXmlAttribute TiXmlNode TiXmlComment TiXmlDeclaration TiXmlDocument TiXmlElement TiXmlText TiXmlUnknown List of all members.

Public Methods

virtual void Print (FILE *cfile, int depth) const=0
 All TinyXml classes can print themselves to a filestream. More...


Static Public Methods

void SetCondenseWhiteSpace (bool condense)
 The world does not agree on whether white space should be kept or not. More...

bool IsWhiteSpaceCondensed ()
 Return the current white space setting.


Friends

class TiXmlNode
class TiXmlElement
class TiXmlDocument

Detailed Description

TiXmlBase is a base class for every class in TinyXml.

It does little except to establish that TinyXml classes can be printed and provide some utility functions.

In XML, the document and elements can contain other elements and other types of nodes.

    A Document can contain: Element (container or leaf)
                            Comment (leaf)
                            Unknown (leaf)
                            Declaration( leaf )

    An Element can contain: Element (container or leaf)
                            Text    (leaf)
                            Attributes (not on tree)
                            Comment (leaf)
                            Unknown (leaf)

    A Decleration contains: Attributes (not on tree)
    


Member Function Documentation

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

All TinyXml classes can print themselves to a filestream.

This is a formatted print, and will insert tabs and newlines.

(For an unformatted stream, use the << operator.)

Reimplemented in TiXmlAttribute, TiXmlElement, TiXmlComment, TiXmlText, TiXmlDeclaration, TiXmlUnknown, and TiXmlDocument.

void TiXmlBase::SetCondenseWhiteSpace bool    condense [inline, static]
 

The world does not agree on whether white space should be kept or not.

In order to make everyone happy, these global, static functions are provided to set whether or not TinyXml will condense all white space into a single space or not. The default is to condense. Note changing these values is not thread safe.


The documentation for this class was generated from the following file:
Generated on Fri Apr 11 23:01:21 2003 for TinyXml by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001