LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
|
Combines a set of OptionsPackages. More...
#include <OptionsFramework.hpp>
Public Member Functions | |
AggregateOptions () | |
Name is taken from argv[0] when AggregateOptions::parse() is called. | |
AggregateOptions (const std::string &name) | |
Explicitly set the program name (for help message and printing) | |
AggregateOptions & | add (OptionsPackage *pack) |
Add a pointer to an OptionsPackage that will be used for options. | |
bool | parse (int argc, char *argv[]) |
Parses a command line, returning true if parsing was ok. | |
std::vector< std::string > | print () const |
void | showHelp () |
Displays the help for this tool. | |
Combines a set of OptionsPackages.
AggregateOptions & loos::OptionsFramework::AggregateOptions::add | ( | OptionsPackage * | pack | ) |
Add a pointer to an OptionsPackage that will be used for options.
Takes a pointer to an OptionsPackage, and appends this to the list of options that will be used to build up the command-line. Returns a reference to itself so that add() calls can be chained.
std::vector< std::string > loos::OptionsFramework::AggregateOptions::print | ( | ) | const |
Returns a string representing the option values in all contained OptionPackage objects