baci::CharacteristicModelImpl

NAME
SYNOPSIS
Constructor & Destructor Documentation
Member Function Documentation
Member Data Documentation
Author

NAME

baci::CharacteristicModelImpl −

SYNOPSIS

#include <baciCharacteristicModelImpl.h>

Inherited by baci::CharacteristicComponentImpl, baci::PcommonImpl< ACS_P_C >, baci::PropertyImpl, baci::PcommonImpl< ACS_P_TL >, ROEnumImpl< ACS_ENUM_C >, ROEnumImpl< ACS_ENUM_T(ENUMPROP_TEST::States), POA_ENUMPROP_TEST::ROStates >, ROEnumImpl< ACS_ENUM_T(EnumTest), POA_TMCDB::ROEnumTest >, ROEnumImpl< ACS_ENUM_T(T), SK >, RWEnumImpl< ACS_ENUM_C >, RWEnumImpl< ACS_ENUM_T(ENUMPROP_TEST::States), POA_ENUMPROP_TEST::RWStates >, and RWEnumImpl< ACS_ENUM_T(EnumTest), POA_TMCDB::RWEnumTest >.

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::DAONode * getDAONode () 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::DAONode * m_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

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]

Author

Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code.