wxXml2
Public Member Functions | Static Public Member Functions | List of all members
wxXml2 Class Reference

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

#include <xml2.h>

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

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.
 

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.

Constructor & Destructor Documentation

wxXml2::wxXml2 ( )
inline
virtual wxXml2::~wxXml2 ( )
inlinevirtual

Member Function Documentation

static void wxXml2::Cleanup ( )
inlinestatic

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 ( )
inlinestatic

Returns the global state of the libxml2 library.

static wxString wxXml2::GetLibxml2Version ( )
inlinestatic

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

static void wxXml2::Init ( )
inlinestatic

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.

Referenced by wxXml2Document::Save().

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.

Referenced by wxXml2Document::Save().

static void wxXml2::TestLibxml2Version ( )
inlinestatic

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: