10 #ifndef COMMANDLINEPARAMETERS_H_ 11 #define COMMANDLINEPARAMETERS_H_ 16 #include <unordered_map> 44 bool AddDataSource(
const std::string &dataProviderName,
const std::string &dataSource);
57 bool AddOutput(
const std::string &persistenceName,
const std::string &output);
71 bool AddParameter(
const std::string &algoName,
const std::string ¶mName,
const std::string ¶meter);
79 const std::string &
GetDataSource(
const std::string &dataProviderName)
const;
93 const std::string &
GetOutput(
const std::string &persistenceName)
const;
118 const std::string &
GetParameter(
const std::string &algoName,
const std::string &parName)
const;
144 typedef std::unordered_map<std::string, std::string>
StringMap;
StringMap _outputMap
Definition: CommandLineParameters.h:145
bool AddDataSource(const std::string &dataProviderName, const std::string &dataSource)
Adds a output configuration string for a given persistence service.
Definition: CommandLineParameters.cpp:18
StringMap _dataSourceMap
Definition: CommandLineParameters.h:145
std::unordered_map< std::string, StringMap > StringMapMap
Definition: CommandLineParameters.h:147
const std::string & GetOutput(const std::string &persistenceName) const
Gets the output string for the given persistence service.
Definition: CommandLineParameters.cpp:49
Exception(std::string msg="")
Definition: Exception.h:31
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
Definition: CommandLineParameters.h:139
A class to store parameters passed from command line.
Definition: CommandLineParameters.h:31
bool AddParameter(const std::string &algoName, const std::string ¶mName, const std::string ¶meter)
Adds a parameter setting string for a given algorithm.
Definition: CommandLineParameters.cpp:26
std::unordered_map< std::string, std::string > StringMap
Definition: CommandLineParameters.h:144
bool AddOutput(const std::string &persistenceName, const std::string &output)
Adds an output configuration string for a given persistence service.
Definition: CommandLineParameters.cpp:22
static const std::string _nullString
Definition: CommandLineParameters.h:150
std::vector< std::pair< std::string, std::vector< std::string > > > GetAlgorithmParameters() const
Get a list of algorithm parameters that has been specified on the command line.
Definition: CommandLineParameters.cpp:115
const std::string & GetDataSource(const std::string &dataProviderName) const
Gets the output string for the given data provider.
Definition: CommandLineParameters.cpp:31
std::vector< std::string > GetProviders() const
Get a list of providers whose data source has been specified on the command line. ...
Definition: CommandLineParameters.cpp:40
Definition: Exception.h:24
std::vector< std::string > GetPersistences() const
Get a list of persistence services whose output has been specified on the command line...
Definition: CommandLineParameters.cpp:58
const std::string & GetParameter(const std::string &algoName, const std::string &parName) const
Gets the value of the given parameter for the given algorithm.
Definition: CommandLineParameters.cpp:67
StringMapMap _parameterMap
Definition: CommandLineParameters.h:148