Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Ishtar::Variable< std::string, ro, 1, warningWhenInitializedWithDefaultValue > Class Template Reference

#include <settings.h>

List of all members.


Detailed Description

template<bool ro, bool warningWhenInitializedWithDefaultValue>
class Ishtar::Variable< std::string, ro, 1, warningWhenInitializedWithDefaultValue >

A variable for a string that behaves like a standard C++ variable excepted that its content is stored in a GenericVarService pointed by ptr and is accessible through network.


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.
Variableoperator= (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.
Variableoperator= (const std::string &s)
 Assignation operator, assign s to v.
Variableoperator= (const char *s)
 Assignation operator, assign s to v.

Private Attributes

GenericVarService< std::string,
ro, 1 > * 
ptr
 The service really containing the value.


The documentation for this class was generated from the following file:
Generated on Mon Oct 24 17:31:47 2005 for libishtarsettings by  doxygen 1.4.2