LuciadCPillar 2024.0.04
luciad::IFeatureModelUpdater Class Referenceabstract

This class defines how an IFeatureModel can be updated. More...

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

Public Member Functions

virtual ~IFeatureModelUpdater ()=default
 
virtual void update (std::shared_ptr< FeatureModelUpdate > modelUpdate)=0
 This method is called to perform an update to the model. More...
 

Detailed Description

This class defines how an IFeatureModel can be updated.

A IFeatureModelUpdater can be accessed through the model using IFeatureModel::getUpdater

Since
2020.1

Constructor & Destructor Documentation

◆ ~IFeatureModelUpdater()

virtual luciad::IFeatureModelUpdater::~IFeatureModelUpdater ( )
virtualdefault

Member Function Documentation

◆ update()

virtual void luciad::IFeatureModelUpdater::update ( std::shared_ptr< FeatureModelUpdate modelUpdate)
pure virtual

This method is called to perform an update to the model.

IFeatureModelUpdater is responsible for:

  • performing the change to its internal state
  • sending out model events after performing the change
  • calling the updater callback (if configured) to inform the caller of this method that the update was successful or not. This for example allows the caller to know which id was assigned to the new Feature.
Parameters
modelUpdatethe object that contains the changes that should be applied on the model.