CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
publish::Command::Options Class Reference

#include <command.h>

Public Member Functions

void AppendPlain (const Argument &a)
 
void Set (const Parameter &p, const Argument &a)
 
bool Has (const std::string &key) const
 
bool HasNot (const std::string &key) const
 
Argument Get (const std::string &key) const
 
std::string GetString (const std::string &key) const
 
std::string GetStringDefault (const std::string &key, const std::string &default_value) const
 
int GetInt (const std::string &key) const
 
unsigned GetSize () const
 
const std::vector< Argument > & plain_args () const
 

Private Attributes

std::map< Parameter, Argumentmap_
 
std::vector< Argumentplain_args_
 

Detailed Description

Encapsulates parameter-argument pairs

Definition at line 110 of file command.h.

Member Function Documentation

void publish::Command::Options::AppendPlain ( const Argument a)
inline

Definition at line 112 of file command.h.

Referenced by publish::Command::ParseOptions().

Here is the caller graph for this function:

Argument publish::Command::Options::Get ( const std::string &  key) const
inline

Definition at line 120 of file command.h.

int publish::Command::Options::GetInt ( const std::string &  key) const
inline

Definition at line 133 of file command.h.

Referenced by publish::CmdTransaction::Main().

Here is the caller graph for this function:

unsigned publish::Command::Options::GetSize ( ) const
inline

Definition at line 136 of file command.h.

std::string publish::Command::Options::GetString ( const std::string &  key) const
inline
std::string publish::Command::Options::GetStringDefault ( const std::string &  key,
const std::string &  default_value 
) const
inline

Definition at line 126 of file command.h.

Referenced by publish::CmdEnter::Main(), and publish::CmdDiff::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

bool publish::Command::Options::Has ( const std::string &  key) const
inline
bool publish::Command::Options::HasNot ( const std::string &  key) const
inline

Definition at line 117 of file command.h.

Referenced by publish::CmdMkfs::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

const std::vector<Argument>& publish::Command::Options::plain_args ( ) const
inline
void publish::Command::Options::Set ( const Parameter p,
const Argument a 
)
inline

Definition at line 113 of file command.h.

Referenced by publish::Command::ParseOptions().

Here is the caller graph for this function:

Member Data Documentation

std::map<Parameter, Argument> publish::Command::Options::map_
private

Definition at line 140 of file command.h.

Referenced by Get(), GetInt(), GetSize(), GetString(), GetStringDefault(), Has(), and Set().

std::vector<Argument> publish::Command::Options::plain_args_
private

Definition at line 141 of file command.h.

Referenced by AppendPlain(), and plain_args().


The documentation for this class was generated from the following file: