SVCS - English Documentation
Loading...
Searching...
No Matches
IObserver.hxx
Go to the documentation of this file.
1
17#pragma once
18
19#include "Event.hxx"
20
21
34 * механизм уведомлений, реализацию шаблона Observer и другие сквозные задачи,
35 * которые поддерживают операции СКВ.
36 */
37namespace svcs::services {
38
52class IObserver {
53public:
58
63 virtual ~IObserver() = default;
64
76 virtual void notify(const Event& event) = 0;
77
87 virtual void update(const Event& event) = 0;
88};
89
90}
Defines the event structure used for the Observer pattern notifications.
The Observer Interface (Abstract Base Class).
Definition IObserver.hxx:34
virtual ~IObserver()=default
Default virtual destructor.
virtual void notify(const Event &event)=0
Method called by the Subject to notify the observer.
virtual void update(const Event &event)=0
Method called by the Subject to update the observer.
Service layer components and infrastructure services.
Structure describing an event published by the VCS core.
Definition Event.hxx:30