ADTF
|
Defintion of a property set container interface. More...
Public Member Functions | |
ADTF_IID (IProperties, "properties.ant.base.adtf.iid") | |
iid defintion for IProperties | |
virtual bool | Exists (const char *strName) const =0 |
Checks if property exists by name. More... | |
virtual tResult | Get (IProperties &pProperties) const =0 |
The Get method will copy the the content of current property store to the given pProperties. More... | |
virtual tResult | Set (const IProperties &pProperties)=0 |
The Set method should copy the the content of pProperties to the property store of this. More... | |
virtual size_t | GetSize () const =0 |
Return the current size (count of properties) within the store. More... | |
virtual tResult | GetProperty (const char *strName, IProperty &pProperty) const =0 |
Find a property and set the content to the pProperty. More... | |
virtual tResult | SetProperty (const IProperty &pProperty)=0 |
virtual tResult | SetPropertyByPath (const char *strParentPath, const IProperty &pProperty)=0 |
virtual tResult | RemoveProperty (const char *strName)=0 |
virtual tResult | RegisterPropertyObserver (const char *strPropertyName, IPropertyObserver &oObserver)=0 |
virtual tResult | UnregisterPropertyObserver (IPropertyObserver &oObserver)=0 |
Public Member Functions inherited from IObject | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Protected Member Functions | |
~IProperties ()=default | |
Protected destructor. | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
Defintion of a property set container interface.
The IProperties will provide an interface to access a container by a named based property storage.
Definition at line 196 of file property_intf.h.
|
pure virtual |
Checks if property exists by name.
strName | [in] the name to check. |
|
pure virtual |
The Get method will copy the the content of current property store to the given pProperties.
Usually this is a simple call of pProperties.Set(*this);
pProperties | [in] The Property set where to copy the content to. |
Find a property and set the content to the pProperty.
This method will always COPY.
strName | [in] Name of the property to find |
pProperty | [in, out] Property interface to set the content to. |
ERR_NOTFOUND | A property with the name strName does not exist. |
|
pure virtual |
Return the current size (count of properties) within the store.
Any subproperties are NOT counted.
|
pure virtual |
The Set method should copy the the content of pProperties to the property store of this.
pProperties | [in] The Property set where to copy the content from. |