Utility class for managing command line inputs to DAKOTA. More...
Public Member Functions | |
CommandLineHandler () | |
default constructor, requires check_usage() call for parsing | |
CommandLineHandler (int argc, char **argv) | |
constructor with parsing | |
~CommandLineHandler () | |
destructor | |
void | check_usage (int argc, char **argv) |
Verifies that DAKOTA is called with the correct command usage. Prints a descriptive message and exits the program if incorrect. | |
int | read_restart_evals () const |
Returns the number of evaluations to be read from the restart file (as specified on the DAKOTA command line) as an integer instead of a const char*. | |
bool | instantiate_flag () const |
Whether command line args dictate instantiation of objects for run. | |
Private Member Functions | |
void | initialize_options () |
enrolls the supported command line inputs. | |
void | output_version (std::ostream &s) const |
outputs the DAKOTA version |
Utility class for managing command line inputs to DAKOTA.
CommandLineHandler provides additional functionality that is specific to DAKOTA's needs for the definition and parsing of command line options. Inheritance is used to allow the class to have all the functionality of the base class, GetLongOpt.
bool instantiate_flag | ( | ) | const [inline] |
Whether command line args dictate instantiation of objects for run.
Instantiate objects if not just getting help or version
References GetLongOpt::retrieve().
Referenced by main().