RegistryBase Class Reference

#include <RegistryBase.h>

Inherits NamedObject.

Inherited by Registry< T >.

Inheritance diagram for RegistryBase:

Inheritance graph
[legend]
Collaboration diagram for RegistryBase:

Collaboration graph
[legend]
List of all members.

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

Objectowner () 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

Detailed Description

Definition at line 48 of file RegistryBase.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual bool RegistryBase::hasGetter (  )  const [pure virtual]

Implemented in Registry< T >.

Referenced by Object::listMyRegistry(), and Object::listRegistry().

virtual bool RegistryBase::hasSetter (  )  const [pure virtual]

Implemented in Registry< T >.

Referenced by Object::listMyRegistry(), and Object::listRegistry().

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]

Implemented in Registry< T >.

Referenced by setStr().

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().

int RegistryBase::getStr ( const String name,
String value,
Object owner = NULL 
) [static]

Definition at line 69 of file RegistryBase.cpp.

References ajustName(), ERROR_BACKTRACE(), FAILED(), get(), NamedObject::name(), OK, owner(), and toString().

Referenced by getStr().

int RegistryBase::getStr ( const String name,
String value,
const ObjectId  ownerId 
) [static]

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

Definition at line 112 of file RegistryBase.cpp.

References _isBinded.

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().

String RegistryBase::ajustName ( const String name  )  [inline, static, private]

Definition at line 98 of file RegistryBase.h.

References NamedObject::name(), String::replaceSubStr(), and String::toLower().

Referenced by get(), getStr(), and setStr().


Member Data Documentation

RegistryAccessMode RegistryBase::_accessMode [private]

Definition at line 86 of file RegistryBase.h.

Referenced by accessMode(), and RegistryBase().

RegistryVisibility RegistryBase::_visibility [private]

Definition at line 87 of file RegistryBase.h.

Referenced by RegistryBase(), and visibility().

RegistryPersistency RegistryBase::_persistency [private]

Definition at line 88 of file RegistryBase.h.

Referenced by persistency(), and RegistryBase().

bool RegistryBase::_isBinded [private]

Definition at line 89 of file RegistryBase.h.

Referenced by bind(), and binded().

Object* RegistryBase::_owner [private]

Definition at line 90 of file RegistryBase.h.

Referenced by bind(), and owner().


The documentation for this class was generated from the following files:
Generated on Thu Sep 6 20:13:48 2007 for Pylon Application Platform by  doxygen 1.5.1