LuciadCPillar 2023.1.04
luciad::IFeatureUpdaterCallback Class Referenceabstract

This callback is used by IFeatureModelUpdater to give feedback on whether the feature update was successful or not. More...

#include <luciad/models/features/IFeatureModelUpdater.h>

Public Member Functions

virtual ~IFeatureUpdaterCallback ()=default
 
virtual void onFailure (const FeatureChange &change, const ErrorInfo &errorInfo)=0
 Called by IFeatureModelUpdater::update when a feature change could not be applied successfully. More...
 
virtual void onFeatureAdded (const FeatureChange &change, const Feature &addedFeature)=0
 Called by IFeatureModelUpdater::update whenever a feature was added the model. More...
 
virtual void onFeatureRemoved (const FeatureChange &change)=0
 Called by IFeatureModelUpdater::update whenever a feature was removed. More...
 
virtual void onFeatureUpdated (const FeatureChange &change)=0
 Called by IFeatureModelUpdater::update whenever a feature was updated. More...
 

Detailed Description

This callback is used by IFeatureModelUpdater to give feedback on whether the feature update was successful or not.

Since
2020.1

Constructor & Destructor Documentation

◆ ~IFeatureUpdaterCallback()

virtual luciad::IFeatureUpdaterCallback::~IFeatureUpdaterCallback ( )
virtualdefault

Member Function Documentation

◆ onFailure()

virtual void luciad::IFeatureUpdaterCallback::onFailure ( const FeatureChange change,
const ErrorInfo errorInfo 
)
pure virtual

Called by IFeatureModelUpdater::update when a feature change could not be applied successfully.

Parameters
changethe change that was used in the IFeatureModelUpdater::update.
errorInfoadditional information about the failure

◆ onFeatureAdded()

virtual void luciad::IFeatureUpdaterCallback::onFeatureAdded ( const FeatureChange change,
const Feature addedFeature 
)
pure virtual

Called by IFeatureModelUpdater::update whenever a feature was added the model.

Parameters
changethe change that was used in the IFeatureModelUpdater::update.
addedFeaturethe newly added Feature. This Feature must have an Feature::Builder::id.

◆ onFeatureRemoved()

virtual void luciad::IFeatureUpdaterCallback::onFeatureRemoved ( const FeatureChange change)
pure virtual

Called by IFeatureModelUpdater::update whenever a feature was removed.

Parameters
changethe change that was used in the IFeatureModelUpdater::update.

◆ onFeatureUpdated()

virtual void luciad::IFeatureUpdaterCallback::onFeatureUpdated ( const FeatureChange change)
pure virtual

Called by IFeatureModelUpdater::update whenever a feature was updated.

Parameters
changethe change that was used in the IFeatureModelUpdater::update.