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