Public Types | |
enum | { unset, commandline, ifile } |
How is the input specified on the command line or in an input file. More... | |
Public Member Functions | |
Driver (const CLToolOptions &co) | |
int | main (FILE *in, FILE *out, Communicator &pc) |
virtual function mapping to the specific main for each tool More... | |
string | description () const |
virtual function returning a one-line descriptor for the tool More... | |
template<> | |
string | description () const |
virtual function returning a one-line descriptor for the tool More... | |
void | setInputData (const std::map< std::string, std::string > &inputData) |
Set the input data: More... | |
const std::map< std::string, std::string > & | getInputData () |
bool | readInput (int argc, char **argv, FILE *in, FILE *out) |
Read the arguments from the command line. More... | |
Static Public Member Functions | |
static void | registerKeywords (Keywords &keys) |
Public Attributes | |
enum PLMD::CLTool:: { ... } | inputdata |
How is the input specified on the command line or in an input file. More... | |
Protected Member Functions | |
template<class T > | |
bool | parse (const std::string &key, T &t) |
Get the value of one of the command line arguments. More... | |
void | parseFlag (const std::string &key, bool &t) |
Find out whether one of the command line flags is present or not. More... | |
void | error (const std::string &msg) |
Crash the command line tool with an error. More... | |
template<class T > | |
bool | parseVector (const std::string &key, std::vector< T > &t) |
Definition at line 73 of file Driver.cpp.
PLMD::cltools::Driver< real >::Driver | ( | const CLToolOptions & | co | ) |
Definition at line 105 of file Driver.cpp.
|
virtual |
virtual function returning a one-line descriptor for the tool
Reimplemented from PLMD::CLTool.
Definition at line 35 of file DriverFloat.cpp.
|
virtual |
virtual function returning a one-line descriptor for the tool
Reimplemented from PLMD::CLTool.
Definition at line 112 of file Driver.cpp.
|
protectedinherited |
Crash the command line tool with an error.
Definition at line 206 of file CLTool.cpp.
|
inlineinherited |
|
virtual |
virtual function mapping to the specific main for each tool
Implements PLMD::CLTool.
Definition at line 115 of file Driver.cpp.
|
protectedinherited |
|
protectedinherited |
Find out whether one of the command line flags is present or not.
Definition at line 51 of file CLTool.cpp.
|
protectedinherited |
|
inherited |
Read the arguments from the command line.
Definition at line 60 of file CLTool.cpp.
|
static |
Definition at line 82 of file Driver.cpp.
|
inlineinherited |
enum { ... } PLMD::CLTool::inputdata |
How is the input specified on the command line or in an input file.
Hosted by GitHub
![]() |
![]() |