1 #include "Sti/Base/Parameter.h"
4 const int Parameter::Boolean = 0;
5 const int Parameter::Integer = 1;
6 const int Parameter::Float = 2;
7 const int Parameter::Double = 3;
19 Parameter::Parameter(
const string & name,
20 const string & description,
32 Parameter::Parameter(
const string & name,
const string & description,
bool * value,
int key)
38 _exValue(static_cast<bool*>(value))
41 Parameter::Parameter(
const string & name,
const string & description,
int * value,
int key)
47 _exValue(static_cast<int*>(value))
50 Parameter::Parameter(
const string & name,
const string & description,
float * value,
int key)
56 _exValue(static_cast<float*>(value))
59 Parameter::Parameter(
const string & name,
const string & description,
double* value,
int key)
65 _exValue(static_cast<double*>(value))
68 Parameter::Parameter(
const Parameter & parameter)
71 _description = parameter._description;
72 _key = parameter._key;
73 _type = parameter._type;
74 _value = parameter._value;
75 _exValue = parameter._exValue;
78 Parameter::~Parameter()
void setName(const string &newName)
Set the name of the object.
const string & getName() const
Get the name of the object.