RequestLoader.h
740 Bytes
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
31
32
33
34
35
36
37
38
#ifndef REQUESTLOADER_H
#define REQUESTLOADER_H
#include "../XMLManager/XMLManager.h"
#define TREPS_REQUEST_XSD "request.xsd"
using namespace TREPS::XMLManager;
namespace TREPS
{
namespace RequestManager
{
class RequestLoaderClass : public XMLManagerClass
{
public :
RequestLoaderClass(void);
//load request XML file and valid it with the request.xsd schema file
bool loadAndValid(const char *request_path);
//get request type
string getType(void);
//get request argument by argument name
string getArgStrByName(const char *arg_name);
private :
Node *requestNode;
string typeStr;
NodeList argNodeList;
};
}
}
#endif