CXeromyces Class Reference

#include <Xeromyces.h>

Inheritance diagram for CXeromyces:
XMBFile

List of all members.

Public Member Functions

PSRETURN Load (const PIVFS &vfs, const VfsPath &filename)
 Load from an XML file (with invisible XMB caching).
PSRETURN LoadString (const char *xml)
 Load from an in-memory XML string (with no caching).
bool GenerateCachedXMB (const PIVFS &vfs, const VfsPath &sourcePath, VfsPath &archiveCachePath)
 Convert the given XML file into an XMB in the archive cache.

Static Public Member Functions

static void Startup ()
 Call once when initialising the program, to load libxml2.
static void Terminate ()
 Call once when shutting down the program, to unload libxml2.

Private Member Functions

PSRETURN ConvertFile (const PIVFS &vfs, const VfsPath &filename, const VfsPath &xmbPath)
bool ReadXMBFile (const PIVFS &vfs, const VfsPath &filename)

Static Private Member Functions

static PSRETURN CreateXMB (const xmlDocPtr doc, WriteBuffer &writeBuffer)

Private Attributes

shared_ptr< u8 > m_XMBBuffer

Friends

class TestXeroXMB

Member Function Documentation

PSRETURN CXeromyces::ConvertFile ( const PIVFS vfs,
const VfsPath filename,
const VfsPath xmbPath 
) [private]
PSRETURN CXeromyces::CreateXMB ( const xmlDocPtr  doc,
WriteBuffer writeBuffer 
) [static, private]
bool CXeromyces::GenerateCachedXMB ( const PIVFS vfs,
const VfsPath sourcePath,
VfsPath archiveCachePath 
)

Convert the given XML file into an XMB in the archive cache.

Returns the XMB path in archiveCachePath. Returns false on error.

PSRETURN CXeromyces::Load ( const PIVFS vfs,
const VfsPath filename 
)

Load from an XML file (with invisible XMB caching).

PSRETURN CXeromyces::LoadString ( const char *  xml  ) 

Load from an in-memory XML string (with no caching).

bool CXeromyces::ReadXMBFile ( const PIVFS vfs,
const VfsPath filename 
) [private]
void CXeromyces::Startup (  )  [static]

Call once when initialising the program, to load libxml2.

This should be run in the main thread, before any thread uses libxml2.

void CXeromyces::Terminate (  )  [static]

Call once when shutting down the program, to unload libxml2.


Friends And Related Function Documentation

friend class TestXeroXMB [friend]

Member Data Documentation

shared_ptr<u8> CXeromyces::m_XMBBuffer [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed May 16 03:15:28 2012 for Pyrogenesis by  doxygen 1.6.3