38
38
class CommandLine {
40
std::vector<std::string> arguments;
40
std::vector<std::string> arguments;
49
* Return number of arguments
54
* Returns (copy of) argument at at position
56
std::string getArgument(int pos) const throw (OutOfRangeException);
59
* Set argument at position
61
void setArgument(int pos, std::string arg);
64
* Add argument at the end of commandline
66
void putArgument(std::string arg);
69
* Returns reference to string at index
71
std::string& operator[](int index) throw (OutOfRangeException);
74
* Returns number of elements
49
* Return number of arguments
54
* Returns (copy of) argument at at position
56
std::string getArgument(int pos) const throw (OutOfRangeException);
59
* Set argument at position
61
void setArgument(int pos, std::string arg);
64
* Add argument at the end of commandline
66
void putArgument(std::string arg);
69
* Returns reference to string at index
71
std::string& operator[](int index) throw (OutOfRangeException);
74
* Returns number of elements