NeoPZ
|
#include <arglib.h>
Public Member Functions | |
arg_base (const char *name, const char *desc) | |
const string & | get_name () const |
const string & | get_desc () const |
bool | was_set () const |
void | mark_set (bool m) |
Protected Member Functions | |
virtual int | parse_parameters (int argc, char *argv [])=0 |
virtual void | write_parameters (ostream &os, bool def=false) const =0 |
Protected Attributes | |
bool | arg_set |
string | arg_name |
string | arg_desc |
Friends | |
class | args_container |
The base argument class. Manages arguments names and descriptions.
clarg::arg_base::arg_base | ( | const char * | name, |
const char * | desc | ||
) |
Definition at line 176 of file arglib.cpp.
References clarg::container_manager::get_container(), and clarg::args_container::register_argument().
|
inline |
Definition at line 135 of file arglib.h.
Referenced by clarg::args_container::arguments_descriptions(), and clarg::args_container::register_argument().
|
inline |
Definition at line 133 of file arglib.h.
Referenced by clarg::args_container::arguments_descriptions(), clarg::args_container::parse_arguments(), and clarg::args_container::register_argument().
|
inline |
Definition at line 140 of file arglib.h.
References m.
Referenced by clarg::args_container::parse_arguments().
|
protectedpure virtual |
Parse the argument parameters. Must be implemented by the specialized argument class. When parsing, make sure you copy the parsed parameters into the arg_parameters array. Returns the number of parameters parsed if ok, -1 if an error occured.
Implemented in clarg::argBool, clarg::argDouble, clarg::argInt, and clarg::argString.
Referenced by clarg::args_container::parse_arguments().
|
inline |
Definition at line 138 of file arglib.h.
Referenced by TPZParFrontStructMatrix< front >::Assemble(), TPZSkylMatrix< TVar >::AutoFill(), TPZSkylMatrix< TVar >::Decompose_Cholesky(), RunStatsTable::lap(), main(), MalhaCubo(), FileStreamWrapper::OpenRead(), FileStreamWrapper::OpenWrite(), FileStreamWrapper::operator TPZStream &(), clarg::args_container::parse_arguments(), read_input_matrix(), res_check(), res_dump(), run_decompose_cholesky(), run_decompose_ldlt(), RunStatsTable::start(), RunStatsTable::stop(), ThreadDohrmanAssemblyList< T >::ThreadWork(), RunStatsTable::was_set(), and RunStatsTable::~RunStatsTable().
|
protectedpure virtual |
write the argument parameters into the output stream.
Implemented in clarg::argBool, clarg::argDouble, clarg::argInt, and clarg::argString.
|
friend |
|
protected |
|
protected |
|
protected |