CXMLUtils Class Reference

#include <xmlutils.h>

Inheritance diagram for CXMLUtils:

CCObject SimpleCCObject List of all members.

Public Member Functions

 CXMLUtils ()
virtual ~CXMLUtils ()

Static Public Member Functions

static BOOL Initialise ()
 Set up application wide XML support.
static BOOL DeInitialise ()
 Set up application wide XML support.
static wxString ConvertToWXString (const xmlChar *)
 Set up application wide XML support.
static void ConvertToXMLString (wxString str, xmlChar **pxmlstr)
 Set up application wide XML support.

Detailed Description

Definition at line 106 of file xmlutils.h.


Constructor & Destructor Documentation

CXMLUtils::CXMLUtils  )  [inline]
 

Definition at line 109 of file xmlutils.h.

00109 {;}

virtual CXMLUtils::~CXMLUtils  )  [inline, virtual]
 

Definition at line 110 of file xmlutils.h.

00110 {;}


Member Function Documentation

wxString CXMLUtils::ConvertToWXString const xmlChar *  xmlString  )  [static]
 

Set up application wide XML support.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/May/2006
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
Pointer to newly allocated StringBase object (caller takes ownership)

Definition at line 176 of file xmlutils.cpp.

00177 {
00178     // Use wx to convert from UTF8 to native
00179     wxString strTemp((const char*)xmlString, wxConvUTF8);
00180 
00181     return strTemp;
00182 }

void CXMLUtils::ConvertToXMLString wxString  str,
xmlChar **  pxmlstr
[static]
 

Set up application wide XML support.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/May/2006
Parameters:
str - wxString input [INPUTS]
pxmlstr - xmlChar* output [OUTPUTS]
Returns:
Pointer to newly allocated StringBase object (caller takes ownership)

Definition at line 198 of file xmlutils.cpp.

00199 {
00200 //  wxCharBuffer buf = str.mb_str(wxConvUTF8);
00201 //  wxStrdup from buf to pxmlstr?
00202 }

BOOL CXMLUtils::DeInitialise  )  [static]
 

Set up application wide XML support.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/May/2006
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
TRUE if succeeded

Definition at line 148 of file xmlutils.cpp.

00149 {
00150     xmlCleanupParser();
00151 
00152 #if _DEBUG
00153     /*
00154      * this is to debug memory for regression tests
00155      */
00156     xmlMemoryDump();
00157 #endif
00158 
00159     return TRUE;
00160 }

BOOL CXMLUtils::Initialise  )  [static]
 

Set up application wide XML support.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/May/2006
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
TRUE if succeeded

Definition at line 126 of file xmlutils.cpp.

00127 {
00128     xmlInitParser();
00129     LIBXML_TEST_VERSION
00130 
00131     return TRUE;
00132 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:53:27 2007 for Camelot by  doxygen 1.4.4