mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-27 06:21:02 +00:00
b57daef75a
Pugixml to replace wx/xml in rXML Change reinterpret cast to static cast. Pass name in pred by reference
34 lines
741 B
C++
34 lines
741 B
C++
#pragma once
|
|
|
|
#include <pugixml.hpp>
|
|
|
|
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;
|
|
}; |