Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/option/StringList.h>
Public Member Functions | |
StringList (const Make &m) | |
usage_t | usage (void) override |
cstring | argDescription (void) override |
void | process (string arg) override |
operator bool (void) const | |
const string & | operator[] (int index) const |
int | count (void) const |
Public Member Functions inherited from Option | |
Option () | |
Option (const Make &make) | |
virtual | ~Option () |
virtual cstring | description () |
Additional Inherited Members | |
Protected Attributes inherited from Option | |
cstring | desc |
This class is used for getting a command line option composed of several strings each one prefixed with the option short or long name.
StringList | ( | const Make & | m | ) |
Build a string option with a short name.
m | Option maker. |
If the option requires an argument, get the description of the argument.
Implements Option.
|
inline |
Get the count of arguments in this option.
References Vector< T, E, A >::count().
Test if some argument has been passed.
|
inline |
Get the indexed argument in the argument list.
index | Index of the argument to get. |
This method is called by the option manager when the option is encountered.
arg | If the option requires an argument, the value of the argument. |
Implements Option.
References Vector< T, E, A >::add().
Get the argument usage type of this function.
Implements Option.
References elm::option::arg_required.