const char * get(const char *name) const
Get argument by name.
Iterate through a HashTable.
Vector< Argument * > m_positionals
Contains all positional arguments.
HashTable< String, Argument * > m_flags
Contains all flag arguments.
Represents program command line argument.
Result addPositional(Argument *arg)
Add positional argument.
virtual const V * get(const K &key) const
Returns the first value for the given key.
ArgumentContainer()
Constructor.
virtual Size count() const
Returns the number of items inside the Vector.
unsigned int Size
Any sane size indicator cannot go negative.
const HashTable< String, Argument * > & getFlags() const
Get flag arguments.
virtual int insert(const T &item)
Adds the given item to the Vector, if possible.
virtual ~ArgumentContainer()
Destructor.
Result addFlag(Argument *arg)
Add flag argument.
virtual bool hasCurrent() const
Check if there is a current item.
const String & getValue() const
Retrieve argument option value (if any)
virtual bool equals(const String &str) const
Alias for compareTo().
const String & getName() const
Retrieve argument name.
virtual bool insert(const K &key, const V &value)
Inserts the given item to the HashTable.
const Vector< Argument * > & getPositionals() const
Get positional arguments.