netxsimdg
Loading...
Searching...
No Matches
CommandLineParser.hpp
Go to the documentation of this file.
1
8#ifndef COMMANDLINEPARSER_HPP
9#define COMMANDLINEPARSER_HPP
10
11#include <boost/program_options.hpp>
12#include <string>
13#include <vector>
14
15namespace Nextsim {
16
21public:
28 CommandLineParser(int argc, char* argv[]);
29 virtual ~CommandLineParser() = default;
30
35 std::vector<std::string> getConfigFileNames();
36
40 std::string configHelp() { return m_configHelp; }
41
45 const static std::string allModuleString;
46
50 const static std::string availableModuleString;
51
52private:
53 CommandLineParser() = default;
54
55 boost::program_options::variables_map m_arguments;
56 std::vector<std::string> m_configFilenames;
57 std::string m_configHelp;
58};
59
60} /* namespace Nextsim */
61
62#endif /* COMMANDLINEPARSER_HPP */
static const std::string availableModuleString
std::vector< std::string > getConfigFileNames()
static const std::string allModuleString