#include <argument.h>
Public Member Functions | |
Argument (string name, string param) | |
bool | validate (std::vector< ValidArgument > &validargs) throw () |
bool | checkForDependecies (vector< Argument > &args) |
bool | checkForConflicts (vector< Argument > &args) |
string | toString () |
string | param () |
Friends | |
class | ArgumentsHelper |
Definition at line 17 of file argument.h.
n2nc::utils::args::Argument::Argument | ( | string | name, | |
string | param | |||
) |
Creates a new argument, but leave it unchecked
Definition at line 7 of file argument.cpp.
bool n2nc::utils::args::Argument::validate | ( | std::vector< ValidArgument > & | validargs | ) | throw () |
check if the argument has valid name and parameter
Definition at line 13 of file argument.cpp.
bool n2nc::utils::args::Argument::checkForDependecies | ( | vector< Argument > & | args | ) |
Tests if the dependencies arguments are satisfied.
Definition at line 68 of file argument.cpp.
References n2nc::utils::args::ValidArgument::dependsof.
bool n2nc::utils::args::Argument::checkForConflicts | ( | vector< Argument > & | args | ) |
Tests if there some conflictual argument.
Definition at line 96 of file argument.cpp.
References n2nc::utils::args::ValidArgument::conflictsto.
string n2nc::utils::args::Argument::toString | ( | ) |
Tests if the given paramenter is valid. Tests if the given name is valid.
Definition at line 117 of file argument.cpp.
string n2nc::utils::args::Argument::param | ( | ) |