Example of using CommandOptionNOf in an application.
Definition at line 63 of file CommandOption_example_4.cpp.
Public Member Functions | |
CommandOption4Example (const string &applName) | |
Initialize command-line arguments. More... | |
bool | initialize (int argc, char *argv[], bool pretty=true) noexcept override |
Process command-line arguments. More... | |
void | process () override |
Do the processing. More... | |
void | shutDown () override |
Clean up. More... | |
![]() | |
BasicFramework (const std::string &applName, const std::string &applDesc) noexcept | |
bool | run () noexcept |
virtual | ~BasicFramework () |
Destructor. More... | |
Public Attributes | |
CommandOptionDependent | hushAndXYZOpt |
Make sure that if xyz options are used, hush is specified. More... | |
CommandOptionNoArg | hushOpt |
Option for demonstrating CommandOptionOneOf. More... | |
CommandOptionMutex | hushOrScreamOpt |
Make sure only one of hushOpt or screamOpt are used. More... | |
CommandOptionNoArg | screamOpt |
Option for demonstrating CommandOptionOneOf. More... | |
CommandOptionNoArg | xOpt |
generic option x More... | |
CommandOptionAllOf | xyzOpts |
Make sure that x y and z are specified together. More... | |
CommandOptionNoArg | yOpt |
generic option y More... | |
CommandOptionNoArg | zOpt |
generic option z More... | |
![]() | |
int | exitCode |
Additional Inherited Members | |
![]() | |
static const int | EXCEPTION_ERROR = 1 |
static const int | EXIST_ERROR = 2 |
static const int | GENERAL_ERROR = 1 |
static const int | OPTION_ERROR = 2 |
![]() | |
virtual void | additionalSetup () |
virtual void | completeProcessing () |
virtual void | spinUp () |
![]() | |
std::string | appDesc |
Description of program's function. More... | |
std::string | argv0 |
Name of the program. More... | |
int | debugLevel |
Debug level for this run of the program. More... | |
CommandOptionNoArg | debugOption |
Enable/increase debugging output. More... | |
CommandOptionHelpUsage | helpOption |
Request command-line option usage. More... | |
int | verboseLevel |
Verbose level for this run of the program. More... | |
CommandOptionNoArg | verboseOption |
Enable/increase informational output. More... | |
CommandOption4Example::CommandOption4Example | ( | const string & | applName | ) |
Initialize command-line arguments.
Definition at line 95 of file CommandOption_example_4.cpp.
|
overridevirtualnoexcept |
Process command-line arguments.
Reimplemented from gnsstk::BasicFramework.
Definition at line 115 of file CommandOption_example_4.cpp.
|
overridevirtual |
Do the processing.
Reimplemented from gnsstk::BasicFramework.
Definition at line 140 of file CommandOption_example_4.cpp.
|
overridevirtual |
Clean up.
Reimplemented from gnsstk::BasicFramework.
Definition at line 147 of file CommandOption_example_4.cpp.
CommandOptionDependent CommandOption4Example::hushAndXYZOpt |
Make sure that if xyz options are used, hush is specified.
Definition at line 90 of file CommandOption_example_4.cpp.
CommandOptionNoArg CommandOption4Example::hushOpt |
Option for demonstrating CommandOptionOneOf.
Definition at line 86 of file CommandOption_example_4.cpp.
CommandOptionMutex CommandOption4Example::hushOrScreamOpt |
Make sure only one of hushOpt or screamOpt are used.
Definition at line 88 of file CommandOption_example_4.cpp.
CommandOptionNoArg CommandOption4Example::screamOpt |
Option for demonstrating CommandOptionOneOf.
Definition at line 84 of file CommandOption_example_4.cpp.
CommandOptionNoArg CommandOption4Example::xOpt |
generic option x
Definition at line 75 of file CommandOption_example_4.cpp.
CommandOptionAllOf CommandOption4Example::xyzOpts |
Make sure that x y and z are specified together.
Definition at line 81 of file CommandOption_example_4.cpp.
CommandOptionNoArg CommandOption4Example::yOpt |
generic option y
Definition at line 77 of file CommandOption_example_4.cpp.
CommandOptionNoArg CommandOption4Example::zOpt |
generic option z
Definition at line 79 of file CommandOption_example_4.cpp.