Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
Medical Imaging Interaction Toolkit
berry::IStateListener Struct Referenceabstract

#include <berryIStateListener.h>

Inheritance diagram for berry::IStateListener:

Classes

struct  Events
 

Public Member Functions

virtual ~IStateListener ()
 
virtual void HandleStateChange (const SmartPointer< State > &state, const SmartPointer< Object > &oldValue)=0
 

Detailed Description

A listener to changes in some state.

Clients may implement, but must not extend this interface.

Definition at line 36 of file berryIStateListener.h.

Constructor & Destructor Documentation

◆ ~IStateListener()

berry::IStateListener::~IStateListener ( )
virtual

Definition at line 37 of file berryIStateListener.cpp.

Member Function Documentation

◆ HandleStateChange()

virtual void berry::IStateListener::HandleStateChange ( const SmartPointer< State > &  state,
const SmartPointer< Object > &  oldValue 
)
pure virtual

Handles a change to the value in some state.

Parameters
stateThe state that has changed; never null. The value for this state has been updated to the new value.
oldValueThe old value; may be anything.

Referenced by berry::IStateListener::Events::AddListener(), berry::AbstractHandlerWithState::AddState(), and berry::IStateListener::Events::RemoveListener().


The documentation for this struct was generated from the following files: