wxXml2 Class Reference

#include <xml2.h>

List of all members.


Detailed Description

A wrapper for some libxml2 static functions regarding the entire parser.

In particular, you should call the Init() function before using any of the wxXml2Wrapper and you should call the Cleanup() function before exiting to avoid memory leaks.


Public Member Functions

 wxXml2 ()
virtual ~wxXml2 ()

Static Public Member Functions

static void Init ()
 Initializes the libxml2 parser.
static void Cleanup ()
 Frees some internal libxml2 structures.
static wxString GetLibxml2Version ()
 Returns a string with the libxml2 library version used when this source was compiled.
static void TestLibxml2Version ()
 Checks the compiled library version against the include one.
static xmlGlobalState * GetGlobalState ()
 Returns the global state of the libxml2 library.
static void SetIndentMode (bool benable=TRUE, int indentstep=4)
 Enables/disable the indentation mode for the libxml2 library.
static void RestoreLastIndentMode ()
 Restores the indentation mode which was used before last call to SetIndentMode() function.


Constructor & Destructor Documentation

wxXml2::wxXml2 (  )  [inline]

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


Member Function Documentation

static void wxXml2::Cleanup (  )  [inline, static]

Frees some internal libxml2 structures.

Call this function after you've finished to work with all wxXml2Wrapper objects to avoid memory leaks.

static xmlGlobalState* wxXml2::GetGlobalState (  )  [inline, static]

Returns the global state of the libxml2 library.

static wxString wxXml2::GetLibxml2Version (  )  [inline, static]

Returns a string with the libxml2 library version used when this source was compiled.

static void wxXml2::Init (  )  [inline, static]

Initializes the libxml2 parser.

Call this function before using a wxXml2Wrapper.

void wxXml2::RestoreLastIndentMode (  )  [static]

Restores the indentation mode which was used before last call to SetIndentMode() function.

void wxXml2::SetIndentMode ( bool  benable = TRUE,
int  indentstep = 4 
) [static]

Enables/disable the indentation mode for the libxml2 library.

The indentstep is the number of spaces used when indenting.

static void wxXml2::TestLibxml2Version (  )  [inline, static]

Checks the compiled library version against the include one.

If something is wrong, a warning or a fatal error is generated.


The documentation for this class was generated from the following files:
Generated on Thu Sep 28 14:58:01 2006 for wxXml2 by  doxygen 1.4.7