CatapultServer  v0.5.0.1 (Elephant)
catapult::observers::NotificationObserverT< TNotification > Class Template Referenceabstract

A strongly typed notification observer. More...

Inheritance diagram for catapult::observers::NotificationObserverT< TNotification >:

Public Types

using NotificationType = TNotification
 Notification type. More...
 

Public Member Functions

virtual ~NotificationObserverT ()=default
 
virtual const std::string & name () const =0
 Gets the observer name. More...
 
virtual void notify (const TNotification &notification, ObserverContext &context) const =0
 Notifies the observer with a notification to process and an observer context. More...
 

Detailed Description

template<typename TNotification>
class catapult::observers::NotificationObserverT< TNotification >

A strongly typed notification observer.

Member Typedef Documentation

◆ NotificationType

template<typename TNotification >
using catapult::observers::NotificationObserverT< TNotification >::NotificationType = TNotification

Notification type.

Constructor & Destructor Documentation

◆ ~NotificationObserverT()

template<typename TNotification >
virtual catapult::observers::NotificationObserverT< TNotification >::~NotificationObserverT ( )
virtualdefault

Member Function Documentation

◆ name()

◆ notify()

template<typename TNotification >
virtual void catapult::observers::NotificationObserverT< TNotification >::notify ( const TNotification &  notification,
ObserverContext context 
) const
pure virtual

Notifies the observer with a notification to process and an observer context.

Implemented in catapult::observers::AggregateObserverBuilder< TNotification >::DefaultAggregateNotificationObserver, and catapult::observers::FunctionalNotificationObserverT< TNotification >.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: