#include <xtpapplication.h>
|
| XtpApplication () |
|
| ~XtpApplication () override |
|
void | Initialize () final |
| Adds program options to the executable.
|
|
bool | EvaluateOptions () final |
| Process command line options.
|
|
void | Run () final |
| Main body of application.
|
|
void | ShowHelpText (std::ostream &out) final |
|
| Application () |
|
virtual | ~Application () |
|
int | Exec (int argc, char **argv) |
| executes the program
|
|
virtual std::string | ProgramName ()=0 |
| program name
|
|
virtual std::string | VersionString () |
| version string of application
|
|
virtual void | HelpText (std::ostream &out)=0 |
| help text of application without version information
|
|
void | CheckRequired (const std::string &option_name, const std::string &error_msg="") |
| Check weather required option is set.
|
|
boost::program_options::options_description_easy_init | AddProgramOptions (const std::string &group="") |
| add option for command line
|
|
boost::program_options::variables_map & | OptionsMap () |
| get available program options & descriptions
|
|
boost::program_options::options_description & | OptionsDesc () |
|
boost::program_options::options_description & | VisibleOptions () |
| filters out the Hidden group from the options descriptions
|
|
void | StopExecution () |
| call StopExecution after EvaluateOptions
|
|
Definition at line 34 of file xtpapplication.h.
◆ XtpApplication()
votca::xtp::XtpApplication::XtpApplication |
( |
| ) |
|
|
default |
◆ ~XtpApplication()
votca::xtp::XtpApplication::~XtpApplication |
( |
| ) |
|
|
overridedefault |
◆ AddCommandLineOptions()
virtual void votca::xtp::XtpApplication::AddCommandLineOptions |
( |
| ) |
|
|
protectedpure virtual |
◆ CalcExists()
bool votca::xtp::XtpApplication::CalcExists |
( |
const std::string & | name | ) |
const |
|
inlineprivate |
◆ CalculatorNames()
virtual std::vector< std::string > votca::xtp::XtpApplication::CalculatorNames |
( |
| ) |
const |
|
protectedpure virtual |
◆ CalculatorType()
virtual std::string votca::xtp::XtpApplication::CalculatorType |
( |
| ) |
const |
|
protectedpure virtual |
◆ CreateCalculator()
virtual void votca::xtp::XtpApplication::CreateCalculator |
( |
const std::string & | name | ) |
|
|
protectedpure virtual |
◆ EvaluateOptions()
bool votca::xtp::XtpApplication::EvaluateOptions |
( |
| ) |
|
|
finalvirtual |
Process command line options.
- Returns
- true to continue, false to stop
EvaluateOptions is called by Run after parsing the command line. return true if everything is ok, false to stop and show help text.
Implements votca::tools::Application.
Definition at line 88 of file xtpapplication.cc.
◆ EvaluateSpecificOptions()
virtual void votca::xtp::XtpApplication::EvaluateSpecificOptions |
( |
| ) |
|
|
protectedpure virtual |
◆ execute()
virtual void votca::xtp::XtpApplication::execute |
( |
| ) |
|
|
protectedpure virtual |
◆ Initialize()
void votca::xtp::XtpApplication::Initialize |
( |
void | | ) |
|
|
finalvirtual |
◆ PrintLongHelp()
◆ PrintShortHelp()
void votca::xtp::XtpApplication::PrintShortHelp |
( |
std::ostream & | out, |
|
|
const std::string & | calculator_name ) const |
|
private |
◆ Run()
void votca::xtp::XtpApplication::Run |
( |
| ) |
|
|
finalvirtual |
◆ ShowHelpText()
void votca::xtp::XtpApplication::ShowHelpText |
( |
std::ostream & | out | ) |
|
|
finalvirtual |
◆ options_
The documentation for this class was generated from the following files: