Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CXeromyces Class Reference

#include <Xeromyces.h>

Inheritance diagram for CXeromyces:
Collaboration diagram for CXeromyces:

Public Member Functions

PSRETURN Load (const PIVFS &vfs, const VfsPath &filename, const std::string &validatorName="")
 Load from an XML file (with invisible XMB caching). More...
 
PSRETURN LoadString (const char *xml, const std::string &validatorName="")
 Load from an in-memory XML string (with no caching). More...
 
bool GenerateCachedXMB (const PIVFS &vfs, const VfsPath &sourcePath, VfsPath &archiveCachePath, const std::string &validatorName="")
 Convert the given XML file into an XMB in the archive cache. More...
 
- Public Member Functions inherited from XMBData
 XMBData ()
 
bool Initialise (const XMBStorage &doc)
 
XMBElement GetRoot () const
 
int GetElementID (const char *Name) const
 
int GetAttributeID (const char *Name) const
 
const char * GetElementString (const int ID) const
 
const char * GetAttributeString (const int ID) const
 
std::string_view GetElementStringView (const int ID) const
 
std::string_view GetAttributeStringView (const int ID) const
 

Private Member Functions

PSRETURN ConvertFile (const PIVFS &vfs, const VfsPath &filename, const VfsPath &xmbPath, const std::string &validatorName)
 

Private Attributes

XMBStorage m_Data
 

Friends

class TestXMBData
 
class XMBData
 

Member Function Documentation

◆ ConvertFile()

PSRETURN CXeromyces::ConvertFile ( const PIVFS &  vfs,
const VfsPath &  filename,
const VfsPath &  xmbPath,
const std::string &  validatorName 
)
private

◆ GenerateCachedXMB()

bool CXeromyces::GenerateCachedXMB ( const PIVFS &  vfs,
const VfsPath &  sourcePath,
VfsPath &  archiveCachePath,
const std::string &  validatorName = "" 
)

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

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

◆ Load()

PSRETURN CXeromyces::Load ( const PIVFS &  vfs,
const VfsPath &  filename,
const std::string &  validatorName = "" 
)

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

◆ LoadString()

PSRETURN CXeromyces::LoadString ( const char *  xml,
const std::string &  validatorName = "" 
)

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

Friends And Related Function Documentation

◆ TestXMBData

friend class TestXMBData
friend

◆ XMBData

friend class XMBData
friend

Member Data Documentation

◆ m_Data

XMBStorage CXeromyces::m_Data
private

The documentation for this class was generated from the following files: