CommandLine::Parameters Class Reference

List of command-line parameters, in order. More...

#include <CommandLine.h>

Inheritance diagram for CommandLine::Parameters:
[legend]
Collaboration diagram for CommandLine::Parameters:
[legend]

Public Member Functions

Parameter find (const String &name) const
 Fetch parameter by name. More...
 
Parameter findIgnoreCase (const String &name) const
 Fetch parameter by name. More...
 
- Public Member Functions inherited from Vector< Parameter >
 Vector (unsigned int initialCapacity=10, unsigned int capacityIncrement=10)
 
 Vector (const Vector &rhv)
 
 ~Vector ()
 
unsigned int capacity () const
 
bool contains (const Parameter &elem) const
 
const Parameter & firstElement () const
 
int indexOf (const Parameter &elem) const
 
bool isEmpty () const
 
const Parameter & lastElement () const
 
int lastIndexOf (const Parameter &elem) const
 
unsigned int count () const override
 
unsigned int size () const
 
void copyInto (Parameter *array) const
 
bool add (const Parameter &obj)
 
bool addElement (const Parameter &obj)
 
bool addElement (Parameter *objp)
 
void clear ()
 
bool ensureCapacity (unsigned int minCapacity)
 
void removeAllElements ()
 
bool removeElement (const Parameter &obj)
 
bool setSize (unsigned int newSize)
 
void trimToSize ()
 
const Parameter & elementAt (unsigned int index) const
 
bool insertElementAt (const Parameter &obj, unsigned int index)
 
const void remove (unsigned int index)
 
void removeElementAt (unsigned int index)
 
bool setElementAt (const Parameter &obj, unsigned int index)
 
const Parameter & get (unsigned int index) const
 
const Parameter & operator[] (unsigned int index) const override
 
Parameter & operator[] (unsigned int index) override
 
const Vector< Parameter > & operator= (const Vector< Parameter > &rhv)
 
const Vector< Parameter > & operator= (const Vector< Parameter > &&other) noexcept
 
void sort (Comparer compareFunction)
 
Iterator< false > begin ()
 
Iterator< true > begin () const
 
Iterator< false > end ()
 
Iterator< true > end () const
 
- Public Member Functions inherited from Countable< Parameter >
virtual ~Countable ()
 
const Parameter & at (unsigned int i) const
 

Additional Inherited Members

- Public Types inherited from Vector< Parameter >
using Comparer = int(*)(const Parameter &lhs, const Parameter &rhs)
 
- Protected Member Functions inherited from Vector< Parameter >
void copyFrom (const Vector &rhv)
 
- Protected Attributes inherited from Vector< Parameter >
unsigned int _size
 
unsigned int _capacity
 
unsigned int _increment
 
Parameter ** _data
 

Detailed Description

List of command-line parameters, in order.

Member Function Documentation

◆ find()

Parameter CommandLine::Parameters::find ( const String name) const

Fetch parameter by name.

Parameters
nameSearch is case-sensitive

◆ findIgnoreCase()

Parameter CommandLine::Parameters::findIgnoreCase ( const String name) const

Fetch parameter by name.

Parameters
nameSearch is NOT case-sensitive

The documentation for this class was generated from the following file: