![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/DataComponent.h>
Specialization of DataComponentBase that disables serialization, copying and assignment. More...
Specialization of DataComponentBase that disables serialization, copying and assignment.
Use this interface for temporary data that is not supposed to be serialized, copied or assigned.
Public Member Functions | |
std::string | id () const override |
Returns a unique string identifier for this type of data component. | |
std::unique_ptr< DataComponentBase > | clone () const override |
Creates a clone of this data component. | |
bool | assign (const DataComponentBase &) override |
Assigns the content of other to this data component. | |
bool | equals (const DataComponentBase &) const override |
Compares this data component to other for equality. | |
void | configure (const Properties *) override |
Configure this object instance by de-serializing the given Properties. | |
void | configuration (Properties *) const override |
Serialize the current object configuration into the given Properties object. | |
![]() | |
virtual void | configureDefaults () |
Retrieve the properties of this object, replaces values with their defaults and sets it again. | |
void | registerParameter (ParameterBase *param) |
Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration(). | |
void | unregisterParameter (const ParameterBase *param) |
Remove the given Parameter or SubProperty from the list of registered parameters. | |
Configurable (const Configurable &rhs) | |
Configurable (Configurable &&rhs) noexcept | |
Configurable & | operator= (const Configurable &) |
Configurable & | operator= (Configurable &&) noexcept |
Additional Inherited Members | |
![]() | |
Signal | signalParametersChanged |
Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted. | |
![]() | |
DataComponentBase (const DataComponentBase &)=default | |
DataComponentBase & | operator= (const DataComponentBase &other)=default |
![]() | |
std::vector< Param > | m_params |
List of all registered Parameter and SubProperty instances. | |
|
inlineoverridevirtual |
Returns a unique string identifier for this type of data component.
Implements DataComponentBase.
|
inlineoverridevirtual |
Creates a clone of this data component.
Implements DataComponentBase.
|
inlineoverridevirtual |
Assigns the content of other to this data component.
other | Source data component for assignment. |
Implements DataComponentBase.
|
inlineoverridevirtual |
Compares this data component to other for equality.
other | Other data component to compare this one to. |
Implements DataComponentBase.
|
inlineoverridevirtual |
Configure this object instance by de-serializing the given Properties.
The default implementation will do so automatically for all registered Parameter and SubProperty instances.
Reimplemented from Configurable.
|
inlineoverridevirtual |
Serialize the current object configuration into the given Properties object.
The default implementation will do so automatically for all registered Parameter and SubProperty instances.
Reimplemented from Configurable.