*/
class CommandLine {
private:
- std::vector<std::string> arguments;
-
+ std::vector<std::string> arguments;
+
public:
- /**
- * Constructer
- */
- CommandLine();
-
- /**
- * Return number of arguments
- */
- int count() const;
+ /**
+ * Constructer
+ */
+ CommandLine();
+
+ /**
+ * Return number of arguments
+ */
+ int count() const;
- /**
- * Returns (copy of) argument at at position
- */
- std::string getArgument(int pos) const throw (OutOfRangeException);
+ /**
+ * Returns (copy of) argument at at position
+ */
+ std::string getArgument(int pos) const throw (OutOfRangeException);
- /**
- * Set argument at position
- */
- void setArgument(int pos, std::string arg);
+ /**
+ * Set argument at position
+ */
+ void setArgument(int pos, std::string arg);
- /**
- * Add argument at the end of commandline
- */
- void putArgument(std::string arg);
-
- /**
- * Returns reference to string at index
- */
- std::string& operator[](int index) throw (OutOfRangeException);
+ /**
+ * Add argument at the end of commandline
+ */
+ void putArgument(std::string arg);
+
+ /**
+ * Returns reference to string at index
+ */
+ std::string& operator[](int index) throw (OutOfRangeException);
- /**
- * Returns number of elements
- */
- int size() const;
+ /**
+ * Returns number of elements
+ */
+ int size() const;
};
};