1 #include "ConstrainedParameter.h"
4 ConstrainedParameter::ConstrainedParameter()
11 ConstrainedParameter::ConstrainedParameter(
const string & name,
12 const string & description,
19 :
Parameter(name,description,value,type,key),
22 _default(defaultValue)
28 _minimum = parameter._minimum;
29 _maximum = parameter._maximum;
30 _default = parameter._default;
33 ConstrainedParameter::ConstrainedParameter(
const string & name,
const string & description,
34 bool * value,
bool defaultValue,
int key)
38 _default(defaultValue)
40 *value = defaultValue;
43 ConstrainedParameter::ConstrainedParameter(
const string & name,
const string & description,
44 int * value,
int defaultValue,
int min,
int max,
int key)
48 _default(defaultValue)
50 *value = defaultValue;
53 ConstrainedParameter::ConstrainedParameter(
const string & name,
const string & description,
54 float* value,
float defaultValue,
float min,
float max,
int key)
58 _default(defaultValue)
60 *value = defaultValue;
63 ConstrainedParameter::ConstrainedParameter(
const string & name,
const string & description,
64 double * value,
double defaultValue,
double min,
double max,
int key)
68 _default(defaultValue)
70 *value = defaultValue;
74 ConstrainedParameter::~ConstrainedParameter()