LuciadCPillar 2023.1.04
luciad::IFeatureStateObserver Class Referenceabstract

Can be used to retrieve notifications for FeatureState changes. More...

#include <luciad/layers/features/FeatureStateManager.h>

Public Member Functions

virtual ~IFeatureStateObserver ()=default
 
virtual void onFeatureStateChanged (const FeatureStateEvent &featureStateEvent)=0
 Called when the feature states of one or more features has changed. More...
 

Static Public Member Functions

static std::shared_ptr< IFeatureStateObservercreate (std::function< void(const FeatureStateEvent &)> function)
 Convenience method that can be used to construct a IFeatureStateObserver using a function (lambda). More...
 

Detailed Description

Can be used to retrieve notifications for FeatureState changes.

See FeatureStateManager for a usage example.

Constructor & Destructor Documentation

◆ ~IFeatureStateObserver()

virtual luciad::IFeatureStateObserver::~IFeatureStateObserver ( )
virtualdefault

Member Function Documentation

◆ create()

static std::shared_ptr< IFeatureStateObserver > luciad::IFeatureStateObserver::create ( std::function< void(const FeatureStateEvent &)>  function)
static

Convenience method that can be used to construct a IFeatureStateObserver using a function (lambda).

Parameters
functionthe function that is used to implement the IFeatureStateObserver::onFeatureStateChanged method.
Returns
a new observer instance

◆ onFeatureStateChanged()

virtual void luciad::IFeatureStateObserver::onFeatureStateChanged ( const FeatureStateEvent featureStateEvent)
pure virtual

Called when the feature states of one or more features has changed.

Parameters
featureStateEventthe event describing the changes