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