|
SVCS - English Documentation
|
Mock observer for testing event notifications. More...
Public Member Functions | |
| void | notify (const Event &event) override |
| Method called by the Subject to notify the observer. | |
| void | update (const Event &event) override |
| Method called by the Subject to update the observer. | |
| size_t | getEventCount () const |
| bool | containsMessage (const std::string &text) const |
| void | clear () |
| Public Member Functions inherited from svcs::services::IObserver | |
| virtual | ~IObserver ()=default |
| Default virtual destructor. | |
Public Attributes | |
| std::vector< Event > | received_events |
Mock observer for testing event notifications.
|
inlineoverridevirtual |
Method called by the Subject to notify the observer.
| event | The Event structure containing information about the occurrence. |
Implements svcs::services::IObserver.
|
inlineoverridevirtual |
Method called by the Subject to update the observer.
| event | The Event structure containing information about the occurrence. |
Implements svcs::services::IObserver.