-
Notifications
You must be signed in to change notification settings - Fork 0
/
XmlRpc.h
31 lines (26 loc) · 775 Bytes
/
XmlRpc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
class XmlRpc
{
public:
XmlRpc(boost::property_tree::ptree& ptree, char* methodName);
XmlRpc(boost::property_tree::ptree& ptree, std::string source);
XmlRpc(boost::property_tree::ptree& ptree);
~XmlRpc(void);
void create(char* methodName);
bool load(std::string& str);
void addValue(char* value, char* type = "string");
boost::property_tree::ptree getValueInStruct(int structId, char* name);
void toStr(std::string& str);
XmlRpc operator[](int i);
XmlRpc operator[](char* v);
char* operator=(char* str);
int operator=(int i);
std::string getString();
boost::property_tree::ptree& getTree();
private:
std::string getNode(char* n);
std::string getNode(std::string n);
boost::property_tree::ptree& tree;
bool created;
std::string node;
};