#include <Registry.h>
Inherits RegistryBase.
Inheritance diagram for Registry< T >:


Public Types | |
| typedef int(Object::*) | Getter (const String &, T &) |
| typedef int(Object::*) | Setter (const String &, const T &) |
| typedef int(*) | StaticGetter (const String &, T &) |
| typedef int(*) | StaticSetter (const String &, const T &) |
Public Member Functions | |
| Registry (const String &aName, const T &defaultValue=T(), const String &manual="", const RegistryFlags flags=REG_FLAGS_DEFAULT, Validator< T > *validator=NULL) | |
| virtual | ~Registry () |
| virtual bool | hasGetter () const |
| int | setGetter (Getter getter) |
| int | setGetter (StaticGetter getter) |
| virtual bool | hasSetter () const |
| int | setSetter (Setter setter) |
| int | setSetter (StaticSetter setter) |
| int | set (const T &value) |
| int | get (T &value) |
| virtual int | toString (String &str) |
| virtual int | fromString (const String &str) |
| SIGNAL (set, const T &) | |
| SIGNAL (got, const T &) | |
Static Public Member Functions | |
| static int | set (const String &name, const T &value, Object *owner=NULL) |
| static int | get (const String &name, T &value, Object *owner=NULL) |
Private Attributes | |
| Value< T > | _value |
| Getter | _getter |
| Setter | _setter |
| StaticGetter | _staticGetter |
| StaticSetter | _staticSetter |
Definition at line 30 of file Registry.h.
Definition at line 37 of file Registry.h.
Definition at line 38 of file Registry.h.
| typedef int(*) Registry< T >::StaticGetter(const String &, T &) |
Definition at line 40 of file Registry.h.
| typedef int(*) Registry< T >::StaticSetter(const String &, const T &) |
Definition at line 41 of file Registry.h.
| Registry< T >::Registry | ( | const String & | aName, | |
| const T & | defaultValue = T(), |
|||
| const String & | manual = "", |
|||
| const RegistryFlags | flags = REG_FLAGS_DEFAULT, |
|||
| Validator< T > * | validator = NULL | |||
| ) |
Definition at line 84 of file Registry.h.
References Registry< T >::_value, CONFIG(), ERROR_BACKTRACE(), FAILED(), Support::failure(), NamedObject::name(), RegistryBase::persistency(), and REG_PERSISTENCY_YES.
Definition at line 118 of file Registry.h.
Implements RegistryBase.
Definition at line 123 of file Registry.h.
References Registry< T >::_getter, Registry< T >::_staticGetter, and RegistryBase::owner().
Definition at line 129 of file Registry.h.
References Registry< T >::_getter, Registry< T >::_staticGetter, CSTRING(), MSG_REGISTRY_HAS_STATIC_GETTER, NamedObject::name(), OK, and WARNING.
| int Registry< T >::setGetter | ( | StaticGetter | getter | ) |
Definition at line 139 of file Registry.h.
References Registry< T >::_getter, Registry< T >::_staticGetter, CSTRING(), MSG_REGISTRY_HAS_GETTER, NamedObject::name(), OK, and WARNING.
Implements RegistryBase.
Definition at line 149 of file Registry.h.
References Registry< T >::_setter, Registry< T >::_staticSetter, and RegistryBase::owner().
Definition at line 155 of file Registry.h.
References Registry< T >::_setter, Registry< T >::_staticSetter, CSTRING(), MSG_REGISTRY_HAS_STATIC_SETTER, NamedObject::name(), OK, and WARNING.
| int Registry< T >::setSetter | ( | StaticSetter | setter | ) |
Definition at line 165 of file Registry.h.
References Registry< T >::_setter, Registry< T >::_staticSetter, CSTRING(), MSG_REGISTRY_HAS_SETTER, NamedObject::name(), OK, and WARNING.
| int Registry< T >::set | ( | const T & | value | ) |
Definition at line 175 of file Registry.h.
References Registry< T >::_setter, Registry< T >::_staticSetter, Registry< T >::_value, CONFIG(), EMIT, ERROR_BACKTRACE(), FAILED(), NamedObject::name(), OK, RegistryBase::owner(), RegistryBase::persistency(), and REG_PERSISTENCY_YES.
Referenced by Registry< T >::fromString(), and Registry< T >::set().
| int Registry< T >::get | ( | T & | value | ) |
Definition at line 197 of file Registry.h.
References Registry< T >::_getter, Registry< T >::_staticGetter, Registry< T >::_value, CONFIG(), EMIT, ERROR_BACKTRACE(), FAILED(), NamedObject::name(), OK, RegistryBase::owner(), RegistryBase::persistency(), and REG_PERSISTENCY_YES.
Referenced by Registry< T >::get(), and Registry< T >::toString().
| int Registry< T >::set | ( | const String & | name, | |
| const T & | value, | |||
| Object * | owner = NULL | |||
| ) | [static] |
Definition at line 227 of file Registry.h.
References ERROR, ERROR_BACKTRACE(), FAILED(), RegistryBase::get(), MSG_REGISTRY_TYPE_MISMATCH, NamedObject::name(), OK, RegistryBase::owner(), and Registry< T >::set().
| int Registry< T >::get | ( | const String & | name, | |
| T & | value, | |||
| Object * | owner = NULL | |||
| ) | [static] |
Definition at line 246 of file Registry.h.
References ERROR, ERROR_BACKTRACE(), FAILED(), Registry< T >::get(), RegistryBase::get(), MSG_REGISTRY_TYPE_MISMATCH, NamedObject::name(), OK, and RegistryBase::owner().
Implements RegistryBase.
Definition at line 265 of file Registry.h.
References ERROR_BACKTRACE(), FAILED(), Registry< T >::get(), and OK.
Implements RegistryBase.
Definition at line 279 of file Registry.h.
References ERROR_BACKTRACE(), FAILED(), OK, and Registry< T >::set().
| Registry< T >::SIGNAL | ( | set | , | |
| const T & | ||||
| ) |
| Registry< T >::SIGNAL | ( | got | , | |
| const T & | ||||
| ) |
Definition at line 71 of file Registry.h.
Referenced by Registry< T >::get(), Registry< T >::Registry(), and Registry< T >::set().
Definition at line 73 of file Registry.h.
Referenced by Registry< T >::get(), Registry< T >::hasGetter(), and Registry< T >::setGetter().
Definition at line 74 of file Registry.h.
Referenced by Registry< T >::hasSetter(), Registry< T >::set(), and Registry< T >::setSetter().
StaticGetter Registry< T >::_staticGetter [private] |
Definition at line 75 of file Registry.h.
Referenced by Registry< T >::get(), Registry< T >::hasGetter(), and Registry< T >::setGetter().
StaticSetter Registry< T >::_staticSetter [private] |
Definition at line 76 of file Registry.h.
Referenced by Registry< T >::hasSetter(), Registry< T >::set(), and Registry< T >::setSetter().
1.5.1