mirror of
https://github.com/glest/glest-source.git
synced 2025-08-10 02:16:31 +02:00
- added cppunit into build system and started writing some unit tests (requires new dependency cppunit)
This commit is contained in:
@@ -28,8 +28,16 @@ namespace XERCES_CPP_NAMESPACE{
|
||||
class DOMDocument;
|
||||
class DOMNode;
|
||||
class DOMElement;
|
||||
|
||||
#if XERCES_VERSION_MAJOR < 3
|
||||
class DOMBuilder;
|
||||
#else
|
||||
class DOMLSParser;
|
||||
#endif
|
||||
}
|
||||
|
||||
XERCES_CPP_NAMESPACE_USE
|
||||
|
||||
namespace Shared { namespace Xml {
|
||||
|
||||
enum xml_engine_parser_type {
|
||||
@@ -58,12 +66,23 @@ private:
|
||||
|
||||
private:
|
||||
XmlIo();
|
||||
void init();
|
||||
|
||||
protected:
|
||||
|
||||
#if XERCES_VERSION_MAJOR < 3
|
||||
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * getRootDOMDocument(const string &path, DOMBuilder *parser, bool noValidation);
|
||||
#else
|
||||
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * getRootDOMDocument(const string &path, DOMLSParser *parser, bool noValidation);
|
||||
#endif
|
||||
|
||||
public:
|
||||
static XmlIo &getInstance();
|
||||
~XmlIo();
|
||||
void cleanup();
|
||||
|
||||
static bool isInitialized();
|
||||
|
||||
XmlNode *load(const string &path, const std::map<string,string> &mapTagReplacementValues,bool noValidation=false, bool skipStackCheck=false);
|
||||
void save(const string &path, const XmlNode *node);
|
||||
};
|
||||
@@ -75,12 +94,15 @@ private:
|
||||
|
||||
private:
|
||||
XmlIoRapid();
|
||||
void init();
|
||||
|
||||
public:
|
||||
static XmlIoRapid &getInstance();
|
||||
~XmlIoRapid();
|
||||
void cleanup();
|
||||
|
||||
static bool isInitialized();
|
||||
|
||||
XmlNode *load(const string &path, const std::map<string,string> &mapTagReplacementValues,bool noValidation=false,bool skipStackCheck=false);
|
||||
void save(const string &path, const XmlNode *node);
|
||||
};
|
||||
@@ -98,6 +120,7 @@ private:
|
||||
private:
|
||||
XmlTree(XmlTree&);
|
||||
void operator =(XmlTree&);
|
||||
void clearRootNode();
|
||||
|
||||
public:
|
||||
XmlTree(xml_engine_parser_type engine_type = DEFAULT_XML_ENGINE);
|
||||
|
Reference in New Issue
Block a user