Well, I've come to a conclusion . . .
[aesalon.git] / src / platform / ArgumentList.h
blob23d04b64eb34ffd86d885abd5bce29c68969c7ce
1 #ifndef AESALON_PLATFORM_ARGUMENT_LIST_H
2 #define AESALON_PLATFORM_ARGUMENT_LIST_H
4 #include <string>
5 #include <vector>
7 namespace Aesalon {
8 namespace Platform {
10 class ArgumentList {
11 public:
12 typedef std::vector<std::string> argument_vector_t;
13 private:
14 argument_vector_t argument_vector;
15 public:
16 ArgumentList() {}
17 virtual ~ArgumentList() {}
19 void from_string(std::string string);
21 void add_argument(std::string argument) { argument_vector.push_back(argument); }
22 char **get_as_argv();
24 std::string get_argument(argument_vector_t::size_type which) {
25 return argument_vector[which];
29 } // namespace Platform
30 } // namespace Aesalon
32 #endif