LuciadCPillar 2024.0.04
|
A callback interface that can signal that a Feature was edited. More...
#include <luciad/edit/features/IFeatureEditCallback.h>
Public Member Functions | |
virtual | ~IFeatureEditCallback ()=default |
virtual void | onEdit (const Feature &newFeature, ChangeStatus changeStatus)=0 |
Can be implemented to handle the given Feature. More... | |
Static Public Member Functions | |
static std::shared_ptr< IFeatureEditCallback > | create (std::function< void(const Feature &, ChangeStatus)> function) |
Creates a default IFeatureEditCallback instance that delegates the IFeatureEditCallback::onEdit to the given function. More... | |
A callback interface that can signal that a Feature was edited.
This class is used by IEditHandles implementations to signal changes.
|
virtualdefault |
|
static |
Creates a default IFeatureEditCallback instance that delegates the IFeatureEditCallback::onEdit
to the given function.
This is a convenience method that allows you to reduce boiler plate code using lambdas.
function | the function that is called by IFeatureEditCallback::onEdit |
|
pure virtual |