1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00
rpcs3/Utilities/rXml.h

29 lines
598 B
C
Raw Normal View History

2020-12-25 03:18:36 +01:00
#pragma once
#include <pugixml.hpp>
2020-02-22 20:42:49 +01:00
#include <memory>
struct rXmlNode
{
rXmlNode();
rXmlNode(const pugi::xml_node &);
std::shared_ptr<rXmlNode> GetChildren();
std::shared_ptr<rXmlNode> GetNext();
std::string GetName();
std::string GetAttribute( const std::string &name);
std::string GetNodeContent();
pugi::xml_node handle;
};
struct rXmlDocument
{
rXmlDocument();
rXmlDocument(const rXmlDocument& other) = delete;
rXmlDocument &operator=(const rXmlDocument& other) = delete;
2017-09-03 21:29:20 +02:00
void Read(const std::string& data);
std::shared_ptr<rXmlNode> GetRoot();
pugi::xml_document handle;
};