
The class is a small wrapper around standard command line arguments.
The arguments are stored in a std::vector<char*>, who's last element is always 0.
Definition at line 60 of file apputils.h.
| OSB_APP::ArgList::ArgList | ( | ) |
Default constructor: adds 0 to args_.
| OSB_APP::ArgList::ArgList | ( | int | argc, | |
| char *const | argv[] | |||
| ) |
Construct from command line arguments.
Adds argv[] and terminates args_ with a 0.
| OSB_APP::ArgList::~ArgList | ( | ) |
Destructor: delete all entries in args_.
| OSB_APP::ArgList::ArgList | ( | const ArgList & | ) | [private] |
Prevent copying until needed: not implemented.
| void OSB_APP::ArgList::adjust | ( | int | newCount | ) |
| int OSB_APP::ArgList::argc | ( | ) | const |
| const char* const* OSB_APP::ArgList::argv | ( | ) | const |
Get arguments a C-style array.
| char** OSB_APP::ArgList::argv | ( | ) |
Get arguments a C-style array.
| ArgList& OSB_APP::ArgList::operator<< | ( | const std::string & | arg | ) |
Add an argument.
| ArgList& OSB_APP::ArgList::operator<< | ( | const char *const | arg | ) |
Add an argument.
Prevent assignment until needed: not implemented.
| const char* OSB_APP::ArgList::operator[] | ( | int | i | ) | const |
Get a argument.
| void OSB_APP::ArgList::print | ( | std::ostream & | os | ) | const |
Print the arguments to an output stream.
| void OSB_APP::ArgList::remove | ( | int | i | ) |
Remove the argument at index i.
std::vector<char*> OSB_APP::ArgList::args_ [private] |
1.4.7