ISIS Core Library 0.7.2 (api 3.0.0)
|
A Map of all current Program Parameters when reading from the commandline. More...
#include <progparameter.hpp>
Inherits std::map< std::string, ProgParameter >.
Data Structures | |
struct | hiddenP |
struct | neededP |
struct | notneededP |
Public Member Functions | |
bool | isComplete () const |
ProgParameter & | operator[] (const std::string key) |
const ProgParameter | operator[] (const std::string key) const |
ParameterMap () | |
bool | parse (int argc, char **argv) |
Reads and tokenizes argv, detecs the parameter names (names are preceded by a "-") and sends the values (everything between one parameter name and the other) to the corresponding ProgParameter-objects to be parsed. |
A Map of all current Program Parameters when reading from the commandline.
Handles instances of ProgParameter for every expected programm parameter and sets them by reading an argc/argv pair.
Definition at line 96 of file progparameter.hpp.
isis::util::ParameterMap::ParameterMap | ( | ) |
Definition at line 96 of file progparameter.cpp.
bool isis::util::ParameterMap::isComplete | ( | ) | const |
Definition at line 163 of file progparameter.cpp.
ProgParameter & isis::util::ParameterMap::operator[] | ( | const std::string | key | ) |
Definition at line 180 of file progparameter.cpp.
const ProgParameter isis::util::ParameterMap::operator[] | ( | const std::string | key | ) | const |
Definition at line 169 of file progparameter.cpp.
bool isis::util::ParameterMap::parse | ( | int | argc, |
char ** | argv | ||
) |
Reads and tokenizes argv, detecs the parameter names (names are preceded by a "-") and sends the values (everything between one parameter name and the other) to the corresponding ProgParameter-objects to be parsed.
argc | the names of the program parameters |
argv | the values of the program parameters |
Definition at line 98 of file progparameter.cpp.