ADTF
|
Property Variable template for the given T
.
More...
Public Member Functions | |
property_variable & | operator= (const T &oVal) |
Assignment operator. | |
void | SetPropertyChangedCallback (const std::function< void()> &fnCallback) |
Set a callback to get notified about property changes. More... | |
void | Notify (const IProperty &oProperty) override |
Implements the observer pattern. More... | |
Public Member Functions inherited from property_variable< T > | |
property_variable ()=default | |
Initializes the property variable with the default value of T . | |
property_variable (const T &xValue) | |
Initializes the property variable with the given value. More... | |
property_variable & | operator= (const T &xValue) |
tResult | GetType (IString &&strType) const override |
Returns the identifier of the type. More... | |
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) |
Sets a value list, that the user can choose from. More... | |
void | SetValidRange (const T &xMin, const T &xMax) |
Sets the valid range of values. More... | |
Public Member Functions inherited from cPropertyVariable | |
cPropertyVariable () | |
The default constructor. | |
cPropertyVariable (const cPropertyVariable &oOther) | |
Copy constructor. More... | |
cPropertyVariable (cPropertyVariable &&oOther) | |
Move constructor. More... | |
cPropertyVariable & | operator= (const cPropertyVariable &oOther) |
Assignment operator. More... | |
cPropertyVariable & | operator= (cPropertyVariable &&oOther) |
Move assignment operator. More... | |
~cPropertyVariable () override | |
Destructor. | |
const ant::IProperties & | GetSubProperties () const |
void | SetDisplayName (const char *strDisplayName) |
Sets the name that tools should display. More... | |
void | SetDescription (const char *strDescription) |
Sets the description text associated with the Property. More... | |
void | SetFilenameExtensionFilter (const char *strFilenameExtensionFilter) |
Sets optional file filters for Configuration Editor FileDialogs of cFilename and cFilenameList properties e.g. More... | |
void | SetFilenameOpenForWriting (bool bWriteMode) |
Sets the write mode for the file property. More... | |
tVoid | SetResolveMacros (tBool bResolveMacros) |
Sets whether or not macros should be resolved by the session manager or not. More... | |
Public Member Functions inherited from cPropertyVariable | |
void | SetUnregister (IMemberPropertyUnregister &oUnregister) |
Private Attributes | |
std::function< void()> | m_fnPropertyChangedCallback |
Additional Inherited Members | |
Protected Member Functions inherited from cPropertyVariable | |
ant::IProperties & | GetSubProperties () |
Protected Member Functions inherited from IPropertyObserver | |
~IPropertyObserver ()=default | |
Protected destructor. | |
Protected Attributes inherited from property_variable< T > | |
ant::property_value< property_type > | m_oValue |
Protected Attributes inherited from 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 |
Definition at line 754 of file configuration.h.
|
inlineoverridevirtual |
Implements the observer pattern.
[in] | oProperty | The changed property. |
Reimplemented from property_variable< T >.
Definition at line 776 of file configuration.h.
References property_variable< T >::Notify().
|
inline |
Set a callback to get notified about property changes.
[in] | fnCallback | Callback function |
Definition at line 771 of file configuration.h.