SourceXtractorPlusPlus  0.10
Please provide a description of the project.
PluginConfig.cpp
Go to the documentation of this file.
1 
17 /*
18  * PluginConfig.cpp
19  *
20  * Created on: Jul 27, 2016
21  * Author: mschefer
22  */
23 
24 #include "SEMain/PluginConfig.h"
25 
26 using namespace Euclid::Configuration;
27 namespace po = boost::program_options;
28 
29 namespace SourceXtractor {
30 
31 static const std::string PLUGIN_DIRECTORY { "plugin-directory" };
32 static const std::string PLUGIN { "plugin" };
33 
34 PluginConfig::PluginConfig(long manager_id)
35  : Configuration(manager_id) {
36 }
37 
39  return { {"Plugin configuration", {
40  {PLUGIN_DIRECTORY.c_str(), po::value<std::string>()->default_value(""),
41  "Path to a directory that contains the plugins"},
42  {PLUGIN.c_str(), po::value<std::vector<std::string>>()->default_value(std::vector<std::string>(), ""),
43  "Defines a plugin to load (without file extension). Can be used multiple times."}
44  }}};
45 }
46 
50 }
51 
53  return m_plugin_path;
54 }
55 
57  return m_plugin_list;
58 }
59 
60 }
std::vector< std::string > m_plugin_list
Definition: PluginConfig.h:49
void initialize(const UserValues &args) override
std::vector< std::string > getPluginList() const
static const std::string PLUGIN
static const std::string PLUGIN_DIRECTORY
STL class.
STL class.
T at(T... args)
std::string getPluginPath() const
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override
T c_str(T... args)