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


Public Member Functions | |
| RegistryBase (const String &name, const String &manual="", const RegistryFlags flags=REG_FLAGS_DEFAULT) | |
| virtual | ~RegistryBase () |
| virtual bool | hasGetter () const=0 |
| virtual bool | hasSetter () const=0 |
| RegistryAccessMode | accessMode () const |
| RegistryVisibility | visibility () const |
| RegistryPersistency | persistency () const |
| virtual int | toString (String &str)=0 |
| virtual int | fromString (const String &str)=0 |
| int | bind (Object *owner=NULL) |
| bool | binded () const |
Static Public Member Functions | |
| static int | setStr (const String &name, const String &value, Object *owner=NULL) |
| static int | setStr (const String &name, const String &value, const ObjectId ownerId) |
| static int | getStr (const String &name, String &value, Object *owner=NULL) |
| static int | getStr (const String &name, String &value, const ObjectId ownerId) |
Protected Member Functions | |
| Object * | owner () const |
Static Protected Member Functions | |
| static int | get (const String &name, RegistryBase **reg, Object *owner=NULL) |
Static Private Member Functions | |
| static String | ajustName (const String &name) |
Private Attributes | |
| RegistryAccessMode | _accessMode |
| RegistryVisibility | _visibility |
| RegistryPersistency | _persistency |
| bool | _isBinded |
| Object * | _owner |
Definition at line 48 of file RegistryBase.h.
| RegistryBase::RegistryBase | ( | const String & | name, | |
| const String & | manual = "", |
|||
| const RegistryFlags | flags = REG_FLAGS_DEFAULT | |||
| ) |
Definition at line 13 of file RegistryBase.cpp.
References _accessMode, _persistency, _visibility, REG_ACCESS_MODE_SHIFT, REG_PERSISTENCY_SHIFT, and REG_VISIBILITY_SHIFT.
| RegistryBase::~RegistryBase | ( | ) | [virtual] |
Definition at line 23 of file RegistryBase.cpp.
| virtual bool RegistryBase::hasGetter | ( | ) | const [pure virtual] |
| virtual bool RegistryBase::hasSetter | ( | ) | const [pure virtual] |
| RegistryAccessMode RegistryBase::accessMode | ( | ) | const |
Definition at line 27 of file RegistryBase.cpp.
References _accessMode.
Referenced by Object::listMyRegistry(), and Object::listRegistry().
| RegistryVisibility RegistryBase::visibility | ( | ) | const |
Definition at line 32 of file RegistryBase.cpp.
References _visibility.
Referenced by Object::listMyRegistry(), and Object::listRegistry().
| RegistryPersistency RegistryBase::persistency | ( | ) | const |
Definition at line 37 of file RegistryBase.cpp.
References _persistency.
Referenced by Registry< T >::get(), Object::listMyRegistry(), Object::listRegistry(), Registry< T >::Registry(), and Registry< T >::set().
| virtual int RegistryBase::toString | ( | String & | str | ) | [pure virtual] |
Implemented in Registry< T >.
Referenced by getStr(), Object::listMyRegistry(), and Object::listRegistry().
| virtual int RegistryBase::fromString | ( | const String & | str | ) | [pure virtual] |
| int RegistryBase::setStr | ( | const String & | name, | |
| const String & | value, | |||
| Object * | owner = NULL | |||
| ) | [static] |
Definition at line 42 of file RegistryBase.cpp.
References ajustName(), ERROR_BACKTRACE(), FAILED(), fromString(), get(), NamedObject::name(), OK, and owner().
Referenced by setStr().
| int RegistryBase::setStr | ( | const String & | name, | |
| const String & | value, | |||
| const ObjectId | ownerId | |||
| ) | [static] |
Definition at line 56 of file RegistryBase.cpp.
References ajustName(), ERROR_BACKTRACE(), FAILED(), Object::get(), NamedObject::name(), OK, owner(), and setStr().
Definition at line 69 of file RegistryBase.cpp.
References ajustName(), ERROR_BACKTRACE(), FAILED(), get(), NamedObject::name(), OK, owner(), and toString().
Referenced by getStr().
Definition at line 83 of file RegistryBase.cpp.
References ajustName(), ERROR_BACKTRACE(), FAILED(), Object::get(), getStr(), NamedObject::name(), OK, and owner().
| int RegistryBase::bind | ( | Object * | owner = NULL |
) |
Definition at line 96 of file RegistryBase.cpp.
References _isBinded, _owner, Object::bindRegistry(), ERROR_BACKTRACE(), FAILED(), OK, and owner().
| bool RegistryBase::binded | ( | ) | const |
| int RegistryBase::get | ( | const String & | name, | |
| RegistryBase ** | reg, | |||
| Object * | owner = NULL | |||
| ) | [static, protected] |
Definition at line 119 of file RegistryBase.cpp.
References Object::_registryPrivate, Object::_registryStatic, ajustName(), CSTRING(), ERROR, MSG_NULL_POINTER, MSG_REGISTRY_EMPTY_NAME, MSG_REGISTRY_NOT_FOUND, NamedObject::name(), OK, and owner().
Referenced by Registry< T >::get(), getStr(), Registry< T >::set(), and setStr().
| Object * RegistryBase::owner | ( | ) | const [inline, protected] |
Definition at line 93 of file RegistryBase.h.
References _owner.
Referenced by bind(), get(), Registry< T >::get(), getStr(), Registry< T >::hasGetter(), Registry< T >::hasSetter(), Registry< T >::set(), and setStr().
Definition at line 98 of file RegistryBase.h.
References NamedObject::name(), String::replaceSubStr(), and String::toLower().
RegistryAccessMode RegistryBase::_accessMode [private] |
RegistryVisibility RegistryBase::_visibility [private] |
bool RegistryBase::_isBinded [private] |
Object* RegistryBase::_owner [private] |
1.5.1