mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
6b5ee57718
Fixes compilation in VS
38 lines
857 B
C++
38 lines
857 B
C++
#pragma once
|
|
|
|
#ifndef PUGIXML_HEADER_ONLY
|
|
#define PUGIXML_HEADER_ONLY 1
|
|
#endif // !PUGIXML_HEADER_ONLY
|
|
#include "pugixml.hpp"
|
|
#undef PUGIXML_HEADER_ONLY
|
|
|
|
struct rXmlNode
|
|
{
|
|
rXmlNode();
|
|
rXmlNode(pugi::xml_node *);
|
|
rXmlNode(const rXmlNode& other);
|
|
rXmlNode &operator=(const rXmlNode& other);
|
|
~rXmlNode();
|
|
std::shared_ptr<rXmlNode> GetChildren();
|
|
std::shared_ptr<rXmlNode> GetNext();
|
|
std::string GetName();
|
|
std::string GetAttribute( const std::string &name);
|
|
std::string GetNodeContent();
|
|
void *AsVoidPtr();
|
|
|
|
pugi::xml_node *handle;
|
|
bool ownPtr;
|
|
};
|
|
|
|
struct rXmlDocument
|
|
{
|
|
rXmlDocument();
|
|
rXmlDocument(const rXmlDocument& other) = delete;
|
|
rXmlDocument &operator=(const rXmlDocument& other) = delete;
|
|
~rXmlDocument();
|
|
void Load(const std::string & path);
|
|
std::shared_ptr<rXmlNode> GetRoot();
|
|
void *AsVoidPtr();
|
|
|
|
pugi::xml_document *handle;
|
|
}; |