Blame view

src/Parameters/PluginsParser.hh 1.78 KB
901bcd2b   Hacene SI HADJ MOHAND   reading xml
1
2
3
4
5
6
7
/*
 * 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.
 */

/* 
5ee530c2   Hacene SI HADJ MOHAND   parse nok
8
 * File:   PluginsParser.hh
901bcd2b   Hacene SI HADJ MOHAND   reading xml
9
10
11
12
13
 * Author: hacene
 *
 * Created on March 17, 2020, 10:16 AM
 */

5ee530c2   Hacene SI HADJ MOHAND   parse nok
14
15
#ifndef PLUGINSPARSER_HH
#define PLUGINSPARSER_HH
901bcd2b   Hacene SI HADJ MOHAND   reading xml
16

5ee530c2   Hacene SI HADJ MOHAND   parse nok
17
#include "XMLConfigurator.hh" 
901bcd2b   Hacene SI HADJ MOHAND   reading xml
18
19
20
21
22
23
24
25
26
#include "ServicesServer.hh" 
#include <iostream>
#include <map>
#include <boost/shared_ptr.hpp>
#include <utility>


namespace AMDA {
    namespace Parameters {
5ee530c2   Hacene SI HADJ MOHAND   parse nok
27
28
        
     
901bcd2b   Hacene SI HADJ MOHAND   reading xml
29
30
31
32

        class PluginsParser : public AMDA::XMLConfigurator::XMLConfigurator {
        public:
            PluginsParser(const char* pXSDFile);
5ee530c2   Hacene SI HADJ MOHAND   parse nok
33
34
35

            virtual ~PluginsParser() {
            }
901bcd2b   Hacene SI HADJ MOHAND   reading xml
36
37
38
39
40
41

            AMDA::Parameters::AMDA_ProcessPluginMaps parse(const std::string& requestFile);
        };

        class PluginObject {
        public:
5ee530c2   Hacene SI HADJ MOHAND   parse nok
42
43

            PluginObject() :
901bcd2b   Hacene SI HADJ MOHAND   reading xml
44
45
            _type(""),
            _requestProcess(""),
5ee530c2   Hacene SI HADJ MOHAND   parse nok
46
            _pluginPath("") {
901bcd2b   Hacene SI HADJ MOHAND   reading xml
47
48
49
50
51
52
53
54
55
56
57
58
59
            }

            void setType(std::string type) {
                _type = type;
            }

            void setRequestProcess(std::string process) {
                _requestProcess = process;
            }

            void setPluginPath(std::string path) {
                _pluginPath = path;
            }
5ee530c2   Hacene SI HADJ MOHAND   parse nok
60
61

            std::string getType() {
901bcd2b   Hacene SI HADJ MOHAND   reading xml
62
63
                return _type;
            }
5ee530c2   Hacene SI HADJ MOHAND   parse nok
64
65

            std::string getRequestProcess() {
901bcd2b   Hacene SI HADJ MOHAND   reading xml
66
67
                return _requestProcess;
            }
5ee530c2   Hacene SI HADJ MOHAND   parse nok
68
69

            std::string getPluginPath() {
901bcd2b   Hacene SI HADJ MOHAND   reading xml
70
71
72
73
74
75
76
77
                return _pluginPath;
            }
        protected:
            std::string _type;
            std::string _requestProcess;
            std::string _pluginPath;

        };
5ee530c2   Hacene SI HADJ MOHAND   parse nok
78
        
901bcd2b   Hacene SI HADJ MOHAND   reading xml
79
80
81
82

    } // end Parameters 
} // end AMDA

5ee530c2   Hacene SI HADJ MOHAND   parse nok
83
#endif /* PLUGINSPARSER_HH */
901bcd2b   Hacene SI HADJ MOHAND   reading xml