This class represents an object to work with different parameters. More...
#include <ie_parameter.hpp>
Public Member Functions | |
Parameter ()=default | |
Default constructor. |
|
Parameter (const std::string &value) | |
The constructor creates a Parameter object with string value. More... |
|
template<class T > | |
Parameter (const T &value) | |
The constructor creates a Parameter object with template value. More... |
|
template<class T > | |
Parameter (const std::vector< T > &values) | |
The constructor creates a Parameter object with a vector of template values. More... |
|
operator std::string () const | |
The cast to string object Throws exception if parameter was not found. More... |
|
std::string | asString (std::string def) const |
Returns a string value for the given parameter or returns the default one. More... |
|
std::string | asString () const |
Returns a string value for the given parameter. Throws exception if parameter was not found. More... |
|
float | asFloat (float def) const |
Gets float value for the given parameter. More... |
|
float | asFloat () const |
Returns a float value for the given layer parameter. More... |
|
std::vector< float > | asFloats (std::vector< float > def) const |
Returns a vector of float values for the given parameter or returns the default value. More... |
|
std::vector< float > | asFloats () const |
Returns a vector of float values for the given parameter. More... |
|
int | asInt (int def) const |
Returns an integer value for the given parameter or returns the default value. More... |
|
int | asInt () const |
Returns an integer value for the given parameter. More... |
|
std::vector< int > | asInts (std::vector< int > def) const |
Returns a vector of int values for the given parameter or returns the default value. More... |
|
std::vector< int > | asInts () const |
Returns a vector of int values for the given parameter. More... |
|
unsigned int | asUInt (unsigned int def) const |
Returns an unsigned integer value for the given parameter or returns the default value. More... |
|
unsigned int | asUInt () const |
Returns an unsigned integer value for the given parameter. More... |
|
std::vector< unsigned int > | asUInts (std::vector< unsigned int > def) const |
Returns a vector of unsigned int values for the given parameter or returns the default value. More... |
|
std::vector< unsigned int > | asUInts () const |
Returns a vector of unsigned int values for the given parameter. More... |
|
bool | asBool (bool def) const |
Returns an boolean value for the given parameter. The valid values are (true, false, 1, 0). More... |
|
bool | asBool () const |
Returns an boolean value for the given parameter. The valid values are (true, false, 1, 0). More... |
|
This class represents an object to work with different parameters.
|
inline |
The constructor creates a Parameter object with string value.
value | string value |
|
inline |
The constructor creates a Parameter object with template value.
value | template value |
|
inline |
The constructor creates a Parameter object with a vector of template values.
values | vector of template values |
|
inline |
Returns an boolean value for the given parameter. The valid values are (true, false, 1, 0).
def | Default value of the parameter if not found |
|
inline |
Returns an boolean value for the given parameter. The valid values are (true, false, 1, 0).
|
inline |
Gets float value for the given parameter.
def | - default value of the parameter if not found |
|
inline |
Returns a float value for the given layer parameter.
|
inline |
Returns a vector of float values for the given parameter or returns the default value.
def | Default value of the parameter if not found |
|
inline |
Returns a vector of float values for the given parameter.
|
inline |
Returns an integer value for the given parameter or returns the default value.
def | Default value of the parameter if not found |
|
inline |
Returns an integer value for the given parameter.
|
inline |
Returns a vector of int values for the given parameter or returns the default value.
def | Default value of the parameter if not found |
|
inline |
Returns a vector of int values for the given parameter.
|
inline |
Returns a string value for the given parameter or returns the default one.
def | Default value of the parameter if not found |
|
inline |
Returns a string value for the given parameter. Throws exception if parameter was not found.
|
inline |
Returns an unsigned integer value for the given parameter or returns the default value.
def | Default value of the parameter if not found |
|
inline |
Returns an unsigned integer value for the given parameter.
|
inline |
Returns a vector of unsigned int values for the given parameter or returns the default value.
def | Default value of the parameter if not found |
|
inline |
Returns a vector of unsigned int values for the given parameter.
|
inline |
The cast to string object Throws exception if parameter was not found.