LuciadCPillar 2023.1.04
|
Observer for changes within the feature model. More...
#include <luciad/models/features/IFeatureModel.h>
Public Member Functions | |
virtual | ~IFeatureModelObserver ()=default |
virtual void | onFeatureModelChanged (const FeatureModelEvent &featureModelEvent)=0 |
This method is called to notify that features have changed. More... | |
Static Public Member Functions | |
static std::shared_ptr< IFeatureModelObserver > | create (std::function< void(const FeatureModelEvent &)> function) |
Creates a default IFeatureModelObserver instance that delegates the IFeatureModelObserver::onFeatureModelChanged to the given function. More... | |
Observer for changes within the feature model.
Allows to get notified about features that have changed.
|
virtualdefault |
|
static |
Creates a default IFeatureModelObserver instance that delegates the IFeatureModelObserver::onFeatureModelChanged to the given function.
This is a convenience method that allows to reduce boiler plate code using lambdas.
function | the function that is called by IFeatureModelObserver::onFeatureModelChanged |
|
pure virtual |
This method is called to notify that features have changed.
featureModelEvent | a model event |