CernVM-FS
2.12.0
|
#include <command.h>
Public Member Functions | |
Parameter (const std::string &key) | |
Parameter (const std::string &key, char short_key, const std::string &arg_name, const std::string &desc, bool is_switch, bool is_optional) | |
bool | operator== (const Parameter &other) const |
bool | operator!= (const Parameter &other) const |
bool | operator< (const Parameter &other) const |
Static Public Member Functions | |
static Parameter | Mandatory (const std::string &key, char short_key, const std::string &arg_name, const std::string &desc) |
static Parameter | Optional (const std::string &key, char short_key, const std::string &arg_name, const std::string &desc) |
static Parameter | Switch (const std::string &key, char short_key, const std::string &desc) |
Public Attributes | |
std::string | key |
char | short_key |
std::string | arg_name |
std::string | description |
bool | is_switch |
bool | is_optional |
A parameter is information that can be passed by -$short_key or –$key to a command. Parameters can be boolean switches (they have no arguments). If they have an argument, parameters can be required for the command or optional.
|
inlineexplicit |
This constructor should only be used for objects that are meant for comparison with / search of existing parameters.
Definition at line 35 of file command.h.
Referenced by Mandatory(), Optional(), and Switch().
|
inline |
|
inlinestatic |
Definition at line 67 of file command.h.
Referenced by publish::CmdHash::GetParams().
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 73 of file command.h.
Referenced by publish::CmdMkfs::GetParams(), publish::CmdZpipe::GetParams(), publish::CmdHash::GetParams(), publish::CmdInfo::GetParams(), publish::CmdCommit::GetParams(), publish::CmdEnter::GetParams(), publish::CmdDiff::GetParams(), and publish::CmdTransaction::GetParams().
|
inlinestatic |
Definition at line 79 of file command.h.
Referenced by publish::CmdMkfs::GetParams(), publish::CmdZpipe::GetParams(), publish::CmdHash::GetParams(), publish::CmdInfo::GetParams(), publish::CmdEnter::GetParams(), publish::CmdAbort::GetParams(), and publish::CmdDiff::GetParams().
std::string publish::Command::Parameter::key |
Definition at line 85 of file command.h.
Referenced by operator!=(), operator<(), and operator==().