Changeset View
Changeset View
Standalone View
Standalone View
source/ps/XML/Xeromyces.h
Show All 28 Lines | |||||
ERROR_TYPE(Xeromyces, XMLOpenFailed); | ERROR_TYPE(Xeromyces, XMLOpenFailed); | ||||
ERROR_TYPE(Xeromyces, XMLParseError); | ERROR_TYPE(Xeromyces, XMLParseError); | ||||
ERROR_TYPE(Xeromyces, XMLValidationFailed); | ERROR_TYPE(Xeromyces, XMLValidationFailed); | ||||
#include "XeroXMB.h" | #include "XeroXMB.h" | ||||
#include "lib/file/vfs/vfs.h" | #include "lib/file/vfs/vfs.h" | ||||
#include "scriptinterface/ScriptForward.h" | |||||
class RelaxNGValidator; | class RelaxNGValidator; | ||||
class WriteBuffer; | class WriteBuffer; | ||||
typedef struct _xmlDoc xmlDoc; | typedef struct _xmlDoc xmlDoc; | ||||
typedef xmlDoc* xmlDocPtr; | typedef xmlDoc* xmlDocPtr; | ||||
class CXeromyces : public XMBFile | class CXeromyces : public XMBFile | ||||
{ | { | ||||
friend class TestXeroXMB; | friend class TestXeroXMB; | ||||
public: | public: | ||||
/** | /** | ||||
* Load from an XML file (with invisible XMB caching). | * Load from an XML file (with invisible XMB caching). | ||||
*/ | */ | ||||
PSRETURN Load(const PIVFS& vfs, const VfsPath& filename, const std::string& validatorName = ""); | PSRETURN Load(const PIVFS& vfs, const VfsPath& filename, const std::string& validatorName = ""); | ||||
/** | /** | ||||
* Load from an in-memory XML string (with no caching). | * Load from an in-memory XML string (with no caching). | ||||
*/ | */ | ||||
PSRETURN LoadString(const char* xml, const std::string& validatorName = ""); | PSRETURN LoadString(const char* xml, const std::string& validatorName = ""); | ||||
/** | /** | ||||
* Load from a JS value | |||||
*/ | |||||
PSRETURN LoadJSValue(const ScriptInterface& scriptInterface, JS::HandleValue value, const std::string& rootName); | |||||
/** | |||||
* Convert the given XML file into an XMB in the archive cache. | * Convert the given XML file into an XMB in the archive cache. | ||||
* Returns the XMB path in @p archiveCachePath. | * Returns the XMB path in @p archiveCachePath. | ||||
* Returns false on error. | * Returns false on error. | ||||
*/ | */ | ||||
bool GenerateCachedXMB(const PIVFS& vfs, const VfsPath& sourcePath, VfsPath& archiveCachePath, const std::string& validatorName = ""); | bool GenerateCachedXMB(const PIVFS& vfs, const VfsPath& sourcePath, VfsPath& archiveCachePath, const std::string& validatorName = ""); | ||||
/** | /** | ||||
* Call once when initialising the program, to load libxml2. | * Call once when initialising the program, to load libxml2. | ||||
Show All 39 Lines |
Wildfire Games · Phabricator