#include <int_arg.hpp>
Inheritance diagram for commandl::int_arg:
Public Methods | |
int_arg (std::vector< std::string >, std::string="", std::string="", bool=false, bool=false) | |
int_arg (std::string, std::string="", std::string="", bool=false, bool=false) | |
operator int () const | |
This operator allows automatic conversion of an int_arg to an int. More... | |
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... | |
int_arg & | operator= (const int &) |
This operator allows assignment of an int value. More... | |
Protected Attributes | |
int | arguments_int |
The underlying int that this class is wrapping. More... |
|
|
|
|
|
This operator allows automatic conversion of an int_arg to an int.
|
|
Can be used to pass a value contained in a vector.
It is important to note that int_arg can take only a single integer 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 to be converted to the internal representation of an integer within this class. 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 Implements commandl::argument. |
|
This operator allows assignment of an int value.
|
|
The underlying int that this class is wrapping.
|