![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "lib/cmdline.hpp"
Abstraction of the usual int argc, int** argv-Commandline, to be able to treat it as a vector of strings.
Inherits from vector<std::string>, but provides convenient conversions to string (joining delimited by space)...
Definition at line 48 of file cmdline.hpp.
Public Member Functions | |
| Cmdline (int argc, const char **argv) | |
| create as a tokenised copy of the current commandline. | |
| Cmdline (const string cmdline) | |
| create by tokenising a string (e.g. | |
| operator string () const | |
| conversion to string by joining the tokens | |
| VectS & | operator= (const VectS &source) |
| template<class In > | |
| Cmdline (In first, In last) | |
| Cmdline () | |
| Cmdline | ( | int | argc, |
| const char ** | argv | ||
| ) |
create as a tokenised copy of the current commandline.
Note that argv[0] is always ignored.
Definition at line 41 of file cmdline.cpp.
|
explicit |
create by tokenising a string (e.g.
"fake" cmdline, separated by whitespace)
Definition at line 55 of file cmdline.cpp.
|
inline |
Definition at line 59 of file cmdline.hpp.
|
inline |
Definition at line 60 of file cmdline.hpp.
| operator string | ( | ) | const |
conversion to string by joining the tokens
Definition at line 73 of file cmdline.cpp.
Definition at line 55 of file cmdline.hpp.
Inheritance diagram for Cmdline:
Collaboration diagram for Cmdline: