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