NeoPZ
|
Public Member Functions | |
void | register_argument (arg_base *arg) |
void | arguments_descriptions (ostream &os, string prefix, string suffix) |
void | list_arguments (ostream &os, bool defined_only) |
int | parse_arguments_from_file (std::istream &is) |
int | parse_arguments (int argc, char *argv[]) |
Public Attributes | |
MAP< string, arg_base * > | args |
string | prog_name |
Arguments container. All the arguments are added into this object.
Definition at line 38 of file arglib.cpp.
|
inline |
Definition at line 48 of file arglib.cpp.
References clarg::arg_base::get_desc(), and clarg::arg_base::get_name().
Referenced by clarg::arguments_descriptions().
|
inline |
Definition at line 57 of file arglib.cpp.
Referenced by clarg::dump_arguments_to_file(), and clarg::values().
|
inline |
Definition at line 92 of file arglib.cpp.
References DEBUG_AL, clarg::arg_base::get_name(), clarg::arg_base::mark_set(), clarg::arg_base::parse_parameters(), and clarg::arg_base::was_set().
Referenced by clarg::parse_arguments().
|
inline |
Read the arguments from file. Returns 0 if ok, != 0 otherwise. TODO: this is not implemented yet. The goal of this method is to parser all the arguments from an argument file. In this way, you may dump all the arguments used in a given run and re-use them by parsing from the file. To do so, you may infoke this method.
Definition at line 80 of file arglib.cpp.
Referenced by clarg::parse_arguments_from_file().
|
inline |
Definition at line 41 of file arglib.cpp.
References DEBUG_AL, clarg::arg_base::get_desc(), and clarg::arg_base::get_name().
Referenced by clarg::arg_base::arg_base().
Definition at line 145 of file arglib.cpp.
string clarg::args_container::prog_name |
Definition at line 147 of file arglib.cpp.