This is the abstract base class to use for implementing new command line tool, within it there is information as to how to go about implemneting a new tool.
More...
#include <CLTool.h>
|
enum PLMD::CLTool:: { ... } | inputdata |
| How is the input specified on the command line or in an input file. More...
|
|
|
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) |
|
This is the abstract base class to use for implementing new command line tool, within it there is information as to how to go about implemneting a new tool.
How is the input specified on the command line or in an input file.
Enumerator |
---|
unset |
|
commandline |
|
ifile |
|
virtual PLMD::CLTool::~CLTool |
( |
| ) |
|
|
inlinevirtual |
virtual destructor to allow inheritance
virtual std::string PLMD::CLTool::description |
( |
| ) |
const |
|
inlinevirtual |
void PLMD::CLTool::error |
( |
const std::string & |
msg | ) |
|
|
protected |
Crash the command line tool with an error.
const std::map<std::string,std::string>& PLMD::CLTool::getInputData |
( |
| ) |
|
|
inline |
virtual int PLMD::CLTool::main |
( |
FILE * |
in, |
|
|
FILE * |
out, |
|
|
Communicator & |
pc |
|
) |
| |
|
pure virtual |
template<class T >
bool PLMD::CLTool::parse |
( |
const std::string & |
key, |
|
|
T & |
t |
|
) |
| |
|
protected |
Get the value of one of the command line arguments.
void PLMD::CLTool::parseFlag |
( |
const std::string & |
key, |
|
|
bool & |
t |
|
) |
| |
|
protected |
Find out whether one of the command line flags is present or not.
template<class T >
bool PLMD::CLTool::parseVector |
( |
const std::string & |
key, |
|
|
std::vector< T > & |
t |
|
) |
| |
|
protected |
bool PLMD::CLTool::readCommandLineArgs |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
FILE * |
out |
|
) |
| |
|
private |
Read the arguments from the command line.
bool PLMD::CLTool::readInput |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
FILE * |
in, |
|
|
FILE * |
out |
|
) |
| |
Read the arguments from the command line.
bool PLMD::CLTool::readInputFile |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
FILE * |
in, |
|
|
FILE * |
out |
|
) |
| |
|
private |
Read the arguments from an input file specified on the command line.
void PLMD::CLTool::registerKeywords |
( |
Keywords & |
keys | ) |
|
|
static |
Create the help keywords.
void PLMD::CLTool::setInputData |
( |
const std::map< std::string, std::string > & |
inputData | ) |
|
|
inline |
void PLMD::CLTool::setRemainingToDefault |
( |
FILE * |
out | ) |
|
|
private |
Set arguments from the default options provided to Keywords.
std::map<std::string,std::string> PLMD::CLTool::inputData |
|
private |
The data read in from the command line stored in a map with the keywords.
enum { ... } PLMD::CLTool::inputdata |
How is the input specified on the command line or in an input file.
The list of keywords for this CLTool.
const std::string PLMD::CLTool::name |
|
private |
The name of this command line tool.
The documentation for this class was generated from the following files: