|
| BankSuper (const BankSuper &bank) |
|
template<class D > |
D & | add (const std::string &key, char brief=0) |
|
template<class D > |
D & | add (char brief=0) |
| Add something that has getName()
|
|
template<class D > |
D & | addExternal (const D &entry, const std::string &key, char brief=0) |
|
void | setBriefKey (char brief, const std::string &value) |
| Now, D::getName() is required.
|
|
bool | hasAlias (const std::string &value) const |
|
bool | hasAlias (char brief) const |
|
char | getAlias (const std::string &value) const |
|
const drain::Dictionary< char, key_t > & | getAliases () const |
|
virtual const std::string & | resolve (const key_t &value) const |
| Given brief or long key, returns the long key .
|
|
void | setTitle (const std::string &title) |
| Set name and brief description of a program, to appear in help dumps.
|
|
Flagger::ivalue_t | addSection (const FlagResolver::dict_t::key_t &title, const FlagResolver::dict_t::value_t index=0) |
|
cloner_t & | getCloner (const std::string &key) const |
| Return the internal static entry.
|
|
D & | add (const std::string &key) |
| Adds class D as an internal instance. More...
|
|
D & | add () |
|
D & | addExternal (const D &entry, const std::string &key) |
| Adds class D using a copy constructor on an external instance. More...
|
|
bool | has (const std::string &key) const |
| Check if a cloner is defined for this key.
|
|
T & | clone (const std::string &key) const |
| Return a copy of the base instance.
|
|
const T & | get (const std::string &key) const |
| Returns the base instance.
|
|
T & | get (const std::string &key) |
| Returns the base instance.
|
|
map_t::const_iterator | get () const |
| Returns a map entry: pair<Key,D *>()
|
|
const map_t & | getMap () const |
|
void | toStream (std::ostream &ostr=std::cout) const |
|
key_set_t & | getKeys () |
|
template<class T>
class drain::BankSuper< T >
A Bank with additional support for brief, single char keys.
Consider a command like "--outputFile" abbreviated "-o".