#include <utils/StructuredCommandLineParser.hpp>
◆ StructuredCommandLineParser()
openfluid::utils::StructuredCommandLineParser::StructuredCommandLineParser |
( |
const std::string & |
ProgramName, |
|
|
const std::string & |
HelpText, |
|
|
const std::vector< CommandLineSection * > & |
CommandSections |
|
) |
| |
|
inline |
Instanciates a command line parser with the given parameters
- Parameters
-
[in] | ProgramName | The name of the programn |
[in] | HelpText | The help text associated to the option |
[in] | CommandSections | List of commands section |
◆ addCommand()
Adds a command. Can add a command to a command section
- Parameters
-
[in] | Command | The command to add |
[in] | CommandSection | The section to add the command. Can be null |
◆ addCommandSection()
void openfluid::utils::StructuredCommandLineParser::addCommandSection |
( |
CommandLineSection * |
CommandSection | ) |
|
|
inline |
Adds a command section to the parser
- Parameters
-
[in] | CommandSection | The command section to add |
◆ addCommandSections()
void openfluid::utils::StructuredCommandLineParser::addCommandSections |
( |
const std::vector< CommandLineSection * > & |
CommandSections | ) |
|
|
inline |
Adds a command section to the parser
- Parameters
-
[in] | CommandSections | The command section to add |
◆ printHelp()
void openfluid::utils::StructuredCommandLineParser::printHelp |
( |
std::ostream & |
OutStm | ) |
|
|
inline |
Prints the help text
- Parameters
-
[in] | OutStm | The stream where the help text is printed (e.g. std::cout) |
The documentation for this class was generated from the following file: