#include <string_arg.hpp>
Inheritance diagram for commandl::string_arg:
Public Methods | |
string_arg (std::vector< std::string >, std::string="", std::string="", bool=false, bool=false) | |
string_arg (std::string, std::string="", std::string="", bool=false, bool=false) | |
void | operator() (const std::string &, const std::string &, const unsigned long) |
This operator is called when there is no value to pass in. More... | |
void | operator() (const std::string &, const std::string &, const std::string &, const std::string &, const unsigned long) |
Used when there is a single string to be passed as the value. More... | |
void | operator() (const std::vector< std::string > &, const std::string &, const std::string &, const std::string &, const unsigned long) |
Can be used to pass a value contained in a vector. More... | |
string_arg & | operator= (const std::string &) |
Assignment operator to make a string_arg act like a string. More... | |
string_arg & | operator= (const char *) |
string_arg & | operator= (const char) |
|
|
|
|
|
Can be used to pass a value contained in a vector.
It is important to note that string_arg can take only a single string as it's value. If the vector passed in has more than a single element, this operator will throw. Implements commandl::argument. |
|
Used when there is a single string to be passed as the value.
This operator should be used to pass a value in that will be the string that this class represents. Implements commandl::argument. |
|
This operator is called when there is no value to pass in.
This operator should only be called when there is no corresponding value to be set. If values_size() returns anything other than zero, this version of the operator will throw. Implements commandl::argument. |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
Assignment operator to make a string_arg act like a string.
|