Public Member Functions | Private Member Functions
CommandLineHandler Class Reference

Utility class for managing command line inputs to DAKOTA. More...

Inheritance diagram for CommandLineHandler:
GetLongOpt

List of all members.

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

Detailed Description

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.


Member Function Documentation

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().


The documentation for this class was generated from the following files: