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
15
namespace
Nextsim {
16
20
class
CommandLineParser
{
21
public
:
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
52
private
:
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 */
Nextsim::CommandLineParser
Definition
CommandLineParser.hpp:20
Nextsim::CommandLineParser::availableModuleString
static const std::string availableModuleString
Definition
CommandLineParser.hpp:50
Nextsim::CommandLineParser::configHelp
std::string configHelp()
Definition
CommandLineParser.hpp:40
Nextsim::CommandLineParser::getConfigFileNames
std::vector< std::string > getConfigFileNames()
Definition
CommandLineParser.cpp:82
Nextsim::CommandLineParser::allModuleString
static const std::string allModuleString
Definition
CommandLineParser.hpp:45
core
src
include
CommandLineParser.hpp
Generated by
1.12.0