Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

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

static 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::TypelessPropertyImpl.


Member Data Documentation

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.

Name of the model.

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

The documentation for this class was generated from the following file: