Go to the documentation of this file.
18 #ifndef __LIBAPP_ARGUMENTCONTAINER_H
19 #define __LIBAPP_ARGUMENTCONTAINER_H
73 const char *
get(
const char *name)
const;
const char * get(const char *name) const
Get argument by name.
Vector< Argument * > m_positionals
Contains all positional arguments.
Generic command-line argument parser.
HashTable< String, Argument * > m_flags
Contains all flag arguments.
Represents program command line argument.
Result addPositional(Argument *arg)
Add positional argument.
ArgumentContainer()
Constructor.
const HashTable< String, Argument * > & getFlags() const
Get flag arguments.
virtual ~ArgumentContainer()
Destructor.
Result addFlag(Argument *arg)
Add flag argument.
const Vector< Argument * > & getPositionals() const
Get positional arguments.