PluginsParser.hh
1.78 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: PluginsParser.hh
* Author: hacene
*
* Created on March 17, 2020, 10:16 AM
*/
#ifndef PLUGINSPARSER_HH
#define PLUGINSPARSER_HH
#include "XMLConfigurator.hh"
#include "ServicesServer.hh"
#include <iostream>
#include <map>
#include <boost/shared_ptr.hpp>
#include <utility>
namespace AMDA {
namespace Parameters {
class PluginsParser : public AMDA::XMLConfigurator::XMLConfigurator {
public:
PluginsParser(const char* pXSDFile);
virtual ~PluginsParser() {
}
AMDA::Parameters::AMDA_ProcessPluginMaps parse(const std::string& requestFile);
};
class PluginObject {
public:
PluginObject() :
_type(""),
_requestProcess(""),
_pluginPath("") {
}
void setType(std::string type) {
_type = type;
}
void setRequestProcess(std::string process) {
_requestProcess = process;
}
void setPluginPath(std::string path) {
_pluginPath = path;
}
std::string getType() {
return _type;
}
std::string getRequestProcess() {
return _requestProcess;
}
std::string getPluginPath() {
return _pluginPath;
}
protected:
std::string _type;
std::string _requestProcess;
std::string _pluginPath;
};
} // end Parameters
} // end AMDA
#endif /* PLUGINSPARSER_HH */