Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

baci::CharacteristicModelImpl Class Reference

#include <baciCharacteristicModelImpl.h>

Inheritance diagram for baci::CharacteristicModelImpl:

Inheritance graph
[legend]
Collaboration diagram for baci::CharacteristicModelImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CharacteristicModelImpl (const ACE_CString &model_name, maci::ContainerServices *containerServices)
 CharacteristicModelImpl (const ACE_CString &child_name, CharacteristicModelImpl *parentModel)
virtual ~CharacteristicModelImpl ()
const char * getModelName () const
cdb::DAONodegetDAONode () const
virtual CosPropertyService::PropertySet_ptr get_all_characteristics ()
virtual CORBA::Any * get_characteristic_by_name (const char *name)
virtual ACS::stringSeq * find_characteristic (const char *reg_exp)

Protected Member Functions

virtual bool readCharacteristics ()

Protected Attributes

ACE_CString model_name_m
 Name of the model.
cdb::DAONodem_daoNode_p

Static Protected Attributes

PortableServer::POA_ptr offShootPOA

Constructor & Destructor Documentation

baci::CharacteristicModelImpl::CharacteristicModelImpl const ACE_CString &  model_name,
maci::ContainerServices containerServices
 

Constructor creating a model for given model name.

TODO In case the CDB for this CharacteristicModel is not found (cdbErrType::CDBRecordDoesNotExistExImpl) we do not fail, but we continue assuming that we dealing with Components without properties and characteristics. Such Components should actually be ACSComponents and not CharacteristicComponents, so we write logs, but we try anyway to continue to be backward compatible. This will delay real problems with missing CDB instances for "true" CharacteristicComponents up to a later point when characteristics or properties will be accessed.

CharacteristicComponents without CDB are deprecated ans will be not allowed any more on a later release

baci::CharacteristicModelImpl::CharacteristicModelImpl const ACE_CString &  child_name,
CharacteristicModelImpl parentModel
 

Constructor creating a child model (for properties). TODO In case the CDB for this CharacteristicModel is not found (cdbErrType::CDBRecordDoesNotExistExImpl) we do not fail, but we continue assuming that we dealing with Components without properties and characteristics. Such Components should actually be ACSComponents and not CharacteristicComponents, so we write logs, but we try anyway to continue to be backward compatible. This will delay real problems with missing CDB instances for "true" CharacteristicComponents up to a later point when characteristics or properties will be accessed.

CharacteristicComponents without CDB are deprecated ans will be not allowed any more on a later release

virtual baci::CharacteristicModelImpl::~CharacteristicModelImpl  )  [virtual]
 


Member Function Documentation

virtual ACS::stringSeq* baci::CharacteristicModelImpl::find_characteristic const char *  reg_exp  )  [virtual]
 

virtual CosPropertyService::PropertySet_ptr baci::CharacteristicModelImpl::get_all_characteristics  )  [virtual]
 

virtual CORBA::Any* baci::CharacteristicModelImpl::get_characteristic_by_name const char *  name  )  [virtual]
 

cdb::DAONode* baci::CharacteristicModelImpl::getDAONode  )  const
 

Exceptions:
cdbErrType::CDBRecordDoesNotExistExImpl 

const char* baci::CharacteristicModelImpl::getModelName  )  const [inline]
 

virtual bool baci::CharacteristicModelImpl::readCharacteristics  )  [protected, virtual]
 

Read characteristics from CDB

Returns:
true on success, false on failure

Reimplemented in baci::PcommonImpl<>, baci::ROcommonImpl<>, baci::ROcontImpl<>, baci::RWcontImpl<>, baci::TypelessPropertyImpl, ROEnumImpl<>, RWEnumImpl<>, baci::PcommonImpl< ACS_P_TL >, baci::ROcommonImpl< ACS_RO_TL >, baci::ROcontImpl< ACS_RO_TL >, baci::RWcontImpl< ACS_RW_TL >, and ROEnumImpl< ACS_ENUM_T(T), SK >.


Member Data Documentation

cdb::DAONode* baci::CharacteristicModelImpl::m_daoNode_p [protected]
 

Smart pointer to DAO node. TODO this should become provate and only getDAONode should be allowed but we cannot do it now to allow backward compatibility.

ACE_CString baci::CharacteristicModelImpl::model_name_m [protected]
 

Name of the model.

PortableServer::POA_ptr baci::CharacteristicModelImpl::offShootPOA [static, protected]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:37:13 2009 for ACS C++ API by doxygen 1.3.8