PluginsParser.hh 1.78 KB
/*
 * 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 */