42std::vector<std::string> splitStringbyDelimiter(
const std::string & stringToSplitIn,
const std::string & delimiter);
68void printFormattedCommandLineOptions(
const std::map<std::string, CommandLineOption>& commandLineOptions,
69 const std::string& optionSectionHeading,
const unsigned int maxWidth,
const std::vector<std::string>& optionsToPrint );
88 CommandLineParser(
int &argc,
char **argv,
const std::map<std::string, CommandLineOption> & allowedCommandLineOptionsIn );
Definition: CommandLineParser.h:77
std::vector< std::string > tokens
Vector with individual command line entries.
Definition: CommandLineParser.h:141
bool getAllReqreuiredParametersSet() const
Definition: CommandLineParser.h:137
const float getCmdOptionAsFloat(const std::string &option, int skip=0) const
Definition: CommandLineParser.cpp:281
bool cmdOptionExists(const std::string &option) const
Definition: CommandLineParser.cpp:304
const int getCmdOptionAsInt(const std::string &option, int skip=0) const
Definition: CommandLineParser.cpp:258
std::string executableName
The executable name contained on the command line.
Definition: CommandLineParser.h:142
const std::string & getCmdOptionAsString(const std::string &option, int skip=0) const
Definition: CommandLineParser.cpp:219
std::string getCommandLine() const
Definition: CommandLineParser.cpp:316
bool allRequiredParametersSet
Indicates if all required parameters were found. Use the getter funciton getAllReqreuiredParametersSe...
Definition: CommandLineParser.h:143
Definition: CommandLineParser.h:28
std::string description
Detailed description of the parameter. This will be used to generate the help message on the command ...
Definition: CommandLineParser.h:31
unsigned int numberOfComponents
Number of elements expected after this flag on the command line. A switch will be 0,...
Definition: CommandLineParser.h:29
std::string format
String describing the format of the parameter, e.g. <int>, <filename>, etc.
Definition: CommandLineParser.h:32
bool required
Indicating if this parameters is essential to run the program. If a given parameter marked by require...
Definition: CommandLineParser.h:30