CatapultServer
v0.5.0.1 (Elephant)
|
const NotificationObserver & m_observer
Definition: NotificationObserverAdapter.cpp:44
cache::CatapultCacheDelta & Cache
Catapult cache.
Definition: ObserverContext.h:86
Context passed to all the observers.
Definition: ObserverContext.h:78
A notification subscriber.
Definition: NotificationSubscriber.h:27
Publish notification on observer channel.
constexpr bool IsSet(NotificationType type, NotificationChannel channel)
Checks if type has channel set.
Definition: NotificationType.h:61
virtual void notify(const TNotification ¬ification, ObserverContext &context) const =0
Notifies the observer with a notification to process and an observer context.
const observers::NotificationObserver & m_observer
Definition: ProcessingUndoNotificationSubscriber.h:44
A notification subscriber that captures notifications and allows them to be undone.
Definition: ProcessingUndoNotificationSubscriber.h:28
NotificationType Type
Notification type.
Definition: Notifications.h:46
const model::ResolverContext Resolvers
Alias resolvers.
Definition: ObserverContext.h:98
std::vector< std::vector< uint8_t > > m_notificationBuffers
Definition: ProcessingUndoNotificationSubscriber.h:47
void notify(const model::Notification ¬ification) override
Notifies the subscriber of notification.
Definition: ProcessingUndoNotificationSubscriber.cpp:49
ProcessingUndoNotificationSubscriber(const observers::NotificationObserver &observer, observers::ObserverContext &observerContext)
Creates a subscriber around observer and observerContext.
Definition: ProcessingUndoNotificationSubscriber.cpp:25
observers::ObserverContext & m_observerContext
Definition: ProcessingUndoNotificationSubscriber.h:45
A strongly typed notification observer.
Definition: NotificationObserver.h:29
void observe(const model::Notification ¬ification)
Definition: ProcessingUndoNotificationSubscriber.cpp:56
const NotifyMode Mode
Notification mode.
Definition: ObserverContext.h:95
A basic notification.
Definition: Notifications.h:36
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
Definition: AddressExtractionExtension.cpp:28
size_t Size
Notification size.
Definition: Notifications.h:49
const catapult::Height Height
Current height.
Definition: ObserverContext.h:92
state::CatapultState & State
Catapult state.
Definition: ObserverContext.h:89
void undo()
Undoes all executions.
Definition: ProcessingUndoNotificationSubscriber.cpp:32