#include <baciCDBPropertySet.h>
Collaboration diagram for baci::CDBPropertySet:
Public Member Functions | |
virtual | ~CDBPropertySet (void) |
void | registerCharacteristicModel (const char *modelName, CharacteristicModelImpl *model) |
void | deregisterCharacteristicModel (const char *modelName) |
const char * | getRepositoryId () |
char * | getObjectId () |
CosPropertyService::PropertySet * | getPropertySet (const char *propertyName) |
virtual void | define_property (const char *property_name, const CORBA::Any &property_value) |
virtual void | define_properties (const CosPropertyService::Properties &nproperties) |
virtual CORBA::ULong | get_number_of_properties () |
virtual void | get_all_property_names (CORBA::ULong how_many, CosPropertyService::PropertyNames_out property_names, CosPropertyService::PropertyNamesIterator_out rest) |
virtual CORBA::Any * | get_property_value (const char *property_name) |
virtual CORBA::Boolean | get_properties (const CosPropertyService::PropertyNames &property_names, CosPropertyService::Properties_out nproperties) |
virtual void | get_all_properties (CORBA::ULong how_many, CosPropertyService::Properties_out nproperties, CosPropertyService::PropertiesIterator_out rest) |
virtual void | delete_property (const char *property_name) |
virtual void | delete_properties (const CosPropertyService::PropertyNames &property_names) |
virtual CORBA::Boolean | delete_all_properties () |
virtual CORBA::Boolean | is_property_defined (const char *property_name) |
Static Public Member Functions | |
CDBPropertySet * | createInstance (CORBA::ORB_ptr orb, PortableServer::POAManager_ptr poa_manager, PortableServer::POA_ptr root_poa) |
CDBPropertySet * | getInstance () |
Protected Member Functions | |
CDBPropertySet (CORBA::ORB_ptr orb, PortableServer::POAManager_ptr poa_manager, PortableServer::POA_ptr root_poa) | |
Private Types | |
typedef std::map< std::string, CharacteristicModelImpl * > | CharacteristicModelImplMap |
Private Member Functions | |
void | operator= (const CDBPropertySet &) |
CDBPropertySet (const CDBPropertySet &) | |
Private Attributes | |
PortableServer::POA_var | poa_m |
POA using DEFAULT_SERVANT policy. | |
PortableServer::Current_var | poaCurrent_m |
POA Current. | |
CharacteristicModelImplMap | modelMap |
Map of characteristic models. | |
Static Private Attributes | |
CDBPropertySet * | instance_mp |
Instance to this object. |
This implementation of PropertySet retrieves data from CDB.
By using the USE_DEFAULT_SERVANT policy, a POA will use a single servant to implement all of its objects. This approach is useful when there is very little data associated with each object, so little that the data can be encoded in the Object Id.
NOTE: before using CDBPropertySet methods you must create singleton by calling CDBPropertySet::createInstance()
|
|
|
Protected constructor which actually creates a singleton.
|
|
Destructor. |
|
ALMA C++ coding standards state copy constructors should be disabled. |
|
This constructor creates a singleton, it has to be called BEFORE using any of CDBPropertySet methods and has to be called only once.
|
|
Support for defining and modifying multiple properties at once. Will modify or add a property to the PropertySet. If the property already exists, then the property type is checked before the value is overwritten. If the property does not exist, then the property is added to the PropertySet.
|
|
Support for defining and modifying properties. Will modify or add a property to the PropertySet. If the property already exists, then the property type is checked before the value is overwritten. If the property does not exist, then the property is added to the PropertySet.
|
|
Validation of delete_properties. Applies to all properties. NOTE: The implementation of CDBPropertySet acts only as accessor, therefore this method always returns false. |
|
Support for Deleting Properties. Deletes the properties defined in the property_names parameter. This is a batch operation that returns the MultipleExceptions exception if any delete failed.
|
|
Support for Deleting Properties. Deletes the specified property if it exists from a PropertySet.
|
|
Deregister characteristic model. |
|
Returns all of the property names currently defined in the PropertySet. If the PropertySet contains more than how_many property names, then the remaining property names are put into the PropertyNamesIterator.
|
|
Returns all of the property names currently defined in the PropertySet. If the PropertySet contains more than how_many property names, then the remaining property names are put into the PropertyNamesIterator.
|
|
Support for Getting Properties and their Names. Returns the current number of properties associated with this PropertySet.
|
|
Returns the values of the properties listed in property_names.
|
|
Returns the value of a property in the PropertySet.
|
|
Accessor to CDBPropertySet singleton.
|
|
Returns ObjectId of this servant.
|
|
Returns PropertySet reference (if neccessary also creates a reference to the CDBPropertySet default servant). This methos creates objects without actually incarnating them with servants. NODE: registerCharacteristicModel(propertyName, model) has to be called first!
|
|
Returns RepositoryId of this servant.
|
|
Support for Existence Check. The is_property_defined operation returns true if the property is defined in the PropertySet, and returns false otherwise.
|
|
ALMA C++ coding standards state assignment operators should be disabled. |
|
Register characteristic model |
|
Instance to this object.
|
|
Map of characteristic models.
|
|
POA using DEFAULT_SERVANT policy.
|
|
POA Current.
|