|
ADTF
|
Property Variable template for the given T. A Property Variable will store a copy of a property value of the specified type T.
More...
#include <configuration.h>
Inherits adtf::base::giant::property_variable< T >.
Public Member Functions | |
| property_variable & | operator= (const T &oVal) |
| Assignment operator. | |
| void | SetPropertyChangedCallback (const std::function< void()> &fnCallback) |
| void | Notify (const IProperty &oProperty) override |
Public Member Functions inherited from adtf::base::giant::property_variable< T > | |
| property_variable ()=default | |
| property_variable (const T &xValue) | |
| property_variable & | operator= (const T &xValue) |
| tResult | GetType (IString &&strType) const override |
| const IPropertyValue * | GetValue () const override |
| const T & | operator* () const |
| operator const T & () const | |
| bool | operator== (const T &oVal) |
| bool | operator!= (const T &oVal) |
| const T * | operator-> () |
| const T * | operator-> () const |
| void | SetValueList (const std::vector< std::pair< T, std::string > > &oValueList, bool bRestrictToValues=true) |
| void | SetValidRange (const T &xMin, const T &xMax) |
Public Member Functions inherited from adtf::base::giant::cPropertyVariable | |
| cPropertyVariable () | |
| cPropertyVariable (const cPropertyVariable &oOther) | |
| cPropertyVariable (cPropertyVariable &&oOther) | |
| cPropertyVariable & | operator= (const cPropertyVariable &oOther) |
| cPropertyVariable & | operator= (cPropertyVariable &&oOther) |
| ~cPropertyVariable () override | |
| const ant::IProperties & | GetSubProperties () const |
| void | SetDisplayName (const char *strDisplayName) |
| void | SetDescription (const char *strDescription) |
| void | SetFilenameExtensionFilter (const char *strFilenameExtensionFilter) |
| void | SetFilenameOpenForWriting (bool bWriteMode) |
| tVoid | SetResolveMacros (tBool bResolveMacros) |
Public Member Functions inherited from adtf::base::ant::cPropertyVariable | |
| void | SetUnregister (IMemberPropertyUnregister &oUnregister) |
Additional Inherited Members | |
Protected Member Functions inherited from adtf::base::giant::cPropertyVariable | |
| ant::IProperties & | GetSubProperties () |
Protected Member Functions inherited from adtf::base::ant::IPropertyObserver | |
| ~IPropertyObserver ()=default | |
| Protected destructor. | |
Protected Attributes inherited from adtf::base::giant::property_variable< T > | |
| ant::property_value< property_type > | m_oValue |
Protected Attributes inherited from adtf::base::giant::cPropertyVariable | |
| std::unique_ptr< cImplementation > | m_pImplementation |
Property Variable template for the given T. A Property Variable will store a copy of a property value of the specified type T.
If it was registered to a property set adtf::base::ant::IProperties by IProperties::RegisterPropertyObserver the copy is automatically updated on property changes.
| T | The type of the property |
|
inlineoverridevirtual |
Implements the observer pattern
| [in] | oProperty | The changed property. |
Reimplemented from adtf::base::giant::property_variable< T >.
|
inline |
Set a callback to get notified about property changes.
| [in] | fnCallback | Callback function |