Logo Search packages:      
Sourcecode: passwordmaker-cli version File versions  Download package

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

TCLAP::SwitchArg Class Reference

#include <SwitchArg.h>

Inheritance diagram for TCLAP::SwitchArg:
Inheritance graph
[legend]
Collaboration diagram for TCLAP::SwitchArg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool _hasBlanks (const std::string &s) const
virtual void addToList (std::list< Arg * > &argList) const
virtual bool argMatches (const std::string &s) const
bool combinedSwitchesMatch (std::string &combined)
void forceRequired ()
std::string getDescription () const
const std::string & getFlag () const
const std::string & getName () const
bool getValue ()
bool isIgnoreable () const
virtual bool isRequired () const
bool isSet () const
bool isValueRequired () const
virtual std::string longID (const std::string &valueId="val") const
virtual bool operator== (const Arg &a)
virtual bool processArg (int *i, std::vector< std::string > &args)
void setRequireLabel (const std::string &s)
virtual std::string shortID (const std::string &valueId="val") const
 SwitchArg (const std::string &flag, const std::string &name, const std::string &desc, bool def, CmdLineInterface &parser, Visitor *v=NULL)
 SwitchArg (const std::string &flag, const std::string &name, const std::string &desc, bool def, Visitor *v=NULL)
virtual std::string toString () const
virtual void trimFlag (std::string &flag, std::string &value) const
void xorSet ()

Static Public Member Functions

static void beginIgnoring ()
static const char blankChar ()
static char delimiter ()
static const char flagStartChar ()
static const std::string flagStartString ()
static const std::string ignoreNameString ()
static bool ignoreRest ()
static const std::string nameStartString ()
static void setDelimiter (char c)

Protected Member Functions

void _checkWithVisitor () const

Protected Attributes

bool _alreadySet
std::string _description
std::string _flag
bool _ignoreable
std::string _name
bool _required
std::string _requireLabel
bool _value
bool _valueRequired
Visitor_visitor
bool _xorSet

Detailed Description

A simple switch argument. If the switch is set on the command line, then the getValue method will return the opposite of the default value for the switch.

Definition at line 39 of file SwitchArg.h.


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

Generated by  Doxygen 1.6.0   Back to index