Go to the documentation of this file.
57 const std::string& applDesc )
64 debugOption(
'd',
"debug",
"Increase debug level"),
65 verboseOption(
'v',
"verbose",
"Increase verbosity"),
66 helpOption(
'h',
"help",
"Print help usage")
95 exitCode = OPTION_ERROR;
99 debugLevel = debugOption.getCount();
100 verboseLevel = verboseOption.getCount();
105 exitCode=OPTION_ERROR;
108 catch (std::exception &exc)
110 cerr <<
"BasicFramework::initialize caught " << exc.
what() << endl;
111 exitCode=OPTION_ERROR;
116 cerr <<
"BasicFramework::initialize caught unknown exception" << endl;
117 exitCode=OPTION_ERROR;
132 completeProcessing();
137 exitCode = EXCEPTION_ERROR;
142 cerr <<
"Caught unknown exception" << endl;
143 exitCode = EXCEPTION_ERROR;
bool helpRequested()
Returns true if any help was requested.
std::string what() const
Dump to a string.
std::ostream & dumpErrors(std::ostream &out)
Writes the errors to out.
virtual void completeProcessing()
void parseOptions(int argc, char *argv[])
Parses the command line.
virtual bool initialize(int argc, char *argv[], bool pretty=true) noexcept
std::ostream & displayUsage(std::ostream &out, bool doPretty=true)
bool hasErrors()
Returns true if any processing errors occurred.
std::ostream & printHelp(std::ostream &out, bool doPretty=true, bool firstOnly=true)
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38