ADTF
|
Base class for basic implementation of a IProperties interface. More...
Public Member Functions | |
cPropertiesBase () | |
CTOR. | |
virtual | ~cPropertiesBase () |
DTOR. | |
cPropertiesBase (const cPropertiesBase &oPropy) | |
copy CTOR More... | |
cPropertiesBase & | operator= (const cPropertiesBase &oPropy) |
copy assignment More... | |
cPropertiesBase (const IProperties &oIPropy) | |
copy CTOR tfrom interface value More... | |
cPropertiesBase & | operator= (const IProperties &oIPropy) |
copy asignment More... | |
bool | Exists (const char *strName) const override |
tResult | Get (IProperties &pProperties) const override |
tResult | Set (const IProperties &pProperties) override |
size_t | GetSize () const override |
tResult | GetProperty (const char *strName, IProperty &pProperty) const override |
tResult | SetProperty (const IProperty &pProperty) override |
tResult | SetPropertyByPath (const char *strParentPath, const IProperty &pProperty) override |
tResult | RemoveProperty (const char *strName) override |
bool | IsEqual (const IProperties &oProperties) const |
compares the content of the current storage with the given oProperties More... | |
tResult | RegisterPropertyObserver (const char *strPropertyName, IPropertyObserver &oObserver) |
tResult | UnregisterPropertyObserver (IPropertyObserver &oObserver) |
cPropertiesBase & | CreateProperty (const char *strName, const ant::IPropertyValue &oValue) |
Adds a new property and returns a reference to the sub-properties object. More... | |
Public Member Functions inherited from object< IProperties > | |
tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
Query interfaces on an object. More... | |
tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
Provides const correct interface querying. More... | |
void | Destroy () const override |
Destruct and deallocate instantiations of type IObject . More... | |
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... | |
Private Member Functions | |
A_UTILS_D (cPropertiesBase) | |
dptr impl | |
cPropertiesBase (cPropertiesBase &&oPropy)=delete | |
no move | |
cPropertiesBase & | operator= (cPropertiesBase &&oPropy)=delete |
no move | |
Additional Inherited Members | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
Base class for basic implementation of a IProperties interface.
It provides a basic implementation of a property storage which follows the definitons of IProperties.
Definition at line 26 of file properties_v1.h.
cPropertiesBase | ( | const cPropertiesBase & | oPropy | ) |
copy CTOR
oPropy | [in] propertie to copy |
cPropertiesBase | ( | const IProperties & | oIPropy | ) |
copy CTOR tfrom interface value
oIPropy | [in] properties to copy |
cPropertiesBase& CreateProperty | ( | const char * | strName, |
const ant::IPropertyValue & | oValue | ||
) |
Adds a new property and returns a reference to the sub-properties object.
Use this for fast creation of property hierachies.
[in] | strName | The name of the new property. |
[in] | oValue | The value of the new property. |
bool IsEqual | ( | const IProperties & | oProperties | ) | const |
compares the content of the current storage with the given oProperties
true | Returns true if the same properties have the same value. |
false | Returns false if same property has different value or type set. |
cPropertiesBase& operator= | ( | const cPropertiesBase & | oPropy | ) |
copy assignment
oPropy | [in] propertie to copy |
cPropertiesBase& operator= | ( | const IProperties & | oIPropy | ) |
copy asignment
oIPropy | [in] properties to copy |