#include <settings.h>
Public Member Functions | |
Variable (const std::string &name, T defaultValue=T()) | |
Constructor, associate this variable with name. | |
~Variable () | |
Destructor. | |
void | associate (const std::string &name, T defaultValue) |
Read this variable's content from config file and associate it to the GenericVarService name. | |
Variable (const Variable< T, ro, s > &v) | |
Copy constructor. | |
Variable & | operator= (const Variable< T, ro, s > &v) |
Assignation operator. | |
operator T & () const | |
Cast operator, return reference to v[0]. | |
T & | operator[] (Size index) const |
Array access operator, return reference to v[index]. | |
Variable & | operator= (const T &val) |
Assignation operator, assign val to v[0]. | |
Variable & | operator= (const T val[s]) |
Assignation operator, assign array val to v. | |
Private Attributes | |
GenericVarService< T, ro, s > * | ptr |
The service really containing the value. |