library of assembled shared sources |
http://lass.cocamware.com |
#include <arg_parser.h>
Public Member Functions | |
virtual | ~ArgParameter () |
const std::string & | shortName () const |
const std::string & | longName () const |
const int | mode () const |
const std::string | format () const |
bool | operator! () const |
operator num::SafeBool () const | |
Protected Member Functions | |
ArgParameter (ArgParser &iParser, const std::string &iShortName, const std::string &iLongName, int iArgMode=amDefault) | |
const std::string | names () const |
const bool | parserIsQuiet () const |
const bool | setValue (const std::string &iValue) |
void | set () |
Private Member Functions | |
virtual const std::string | doFormat () const |
virtual const bool | doSetValue (const std::string &iValue) |
Private Attributes | |
ArgParser & | parser_ |
std::string | shortName_ |
std::string | longName_ |
int | mode_ |
bool | isSet_ |
Friends | |
class | ArgParser |
Definition at line 142 of file arg_parser.h.
lass::io::ArgParameter::~ArgParameter | ( | ) | [virtual] |
Definition at line 564 of file arg_parser.cpp.
lass::io::ArgParameter::ArgParameter | ( | ArgParser & | iParser, | |
const std::string & | iShortName, | |||
const std::string & | iLongName, | |||
int | iArgMode = amDefault | |||
) | [protected] |
Definition at line 605 of file arg_parser.cpp.
References parser_, and lass::io::ArgParser::subscribe().
const std::string & lass::io::ArgParameter::shortName | ( | ) | const |
Definition at line 570 of file arg_parser.cpp.
References shortName_.
Referenced by lass::io::ArgParser::parseShort(), and lass::io::ArgParser::subscribe().
const std::string & lass::io::ArgParameter::longName | ( | ) | const |
Definition at line 577 of file arg_parser.cpp.
References longName_.
Referenced by lass::io::ArgParser::parseLong(), and lass::io::ArgParser::subscribe().
const int lass::io::ArgParameter::mode | ( | ) | const |
Definition at line 584 of file arg_parser.cpp.
References mode_.
Referenced by lass::io::ArgValue< T >::doFormat(), lass::io::ArgValue< T >::doSetValue(), and lass::io::ArgParser::parseShort().
const std::string lass::io::ArgParameter::format | ( | ) | const |
bool lass::io::ArgParameter::operator! | ( | ) | const |
lass::io::ArgParameter::operator num::SafeBool | ( | ) | const |
Definition at line 598 of file arg_parser.cpp.
References isSet_, lass::num::safeFalse, and lass::num::safeTrue.
const std::string lass::io::ArgParameter::names | ( | ) | const [protected] |
Definition at line 620 of file arg_parser.cpp.
References longName_, and shortName_.
Referenced by lass::io::ArgValue< T >::checkMode(), lass::io::ArgValue< T >::doFormat(), doFormat(), and lass::io::ArgValue< T >::doSetValue().
const bool lass::io::ArgParameter::parserIsQuiet | ( | ) | const [protected] |
Definition at line 642 of file arg_parser.cpp.
References lass::io::ArgParser::isQuiet_, and parser_.
Referenced by lass::io::ArgValue< T >::doSetValue().
const bool lass::io::ArgParameter::setValue | ( | const std::string & | iValue | ) | [protected] |
Definition at line 663 of file arg_parser.cpp.
References doSetValue().
Referenced by lass::io::ArgParser::parseShort().
void lass::io::ArgParameter::set | ( | ) | [protected] |
const std::string lass::io::ArgParameter::doFormat | ( | ) | const [private, virtual] |
Reimplemented in lass::io::ArgValue< T >.
Definition at line 670 of file arg_parser.cpp.
References names().
Referenced by format().
const bool lass::io::ArgParameter::doSetValue | ( | const std::string & | iValue | ) | [private, virtual] |
Reimplemented in lass::io::ArgValue< T >.
Definition at line 679 of file arg_parser.cpp.
Referenced by setValue().
friend class ArgParser [friend] |
Definition at line 170 of file arg_parser.h.
ArgParser& lass::io::ArgParameter::parser_ [private] |
std::string lass::io::ArgParameter::shortName_ [private] |
std::string lass::io::ArgParameter::longName_ [private] |
int lass::io::ArgParameter::mode_ [private] |
bool lass::io::ArgParameter::isSet_ [private] |
Definition at line 179 of file arg_parser.h.
Referenced by operator num::SafeBool(), operator!(), and set().
Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by ![]() |