Hold information about an option setting request. More...
#include <AuxDataOption.h>
Public Member Functions | |
AuxDataOption (const std::string &name, int val) | |
Constructor, with an integer value. | |
AuxDataOption (const std::string &name, float val) | |
Constructor, with a float value. | |
AuxDataOption (const std::string &name, double val) | |
Constructor, with a double value. | |
std::string | name () const |
The name of the option. | |
int | intVal () const |
Return the option value as an integer. | |
float | floatVal () const |
Return the option value as a float. |
Hold information about an option setting request.
This is used to pass an option setting through the setOption
interface, which is used to decouple the user interface from the auxiliary store representation classes.
This class holds a name and a value, which can be either an int or a float.
SG::AuxDataOption::AuxDataOption | ( | const std::string & | name, | |
int | val | |||
) | [inline] |
Constructor, with an integer value.
name | The option name. | |
val | The option value. |
SG::AuxDataOption::AuxDataOption | ( | const std::string & | name, | |
float | val | |||
) | [inline] |
Constructor, with a float value.
name | The option name. | |
val | The option value. |
SG::AuxDataOption::AuxDataOption | ( | const std::string & | name, | |
double | val | |||
) | [inline] |
Constructor, with a double value.
name | The option name. | |
val | The option value. |