BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
Notifier.cpp
Go to the documentation of this file.
1
#include "
Notifier.h
"
2
3
using namespace
BPMNOS::Execution
;
4
5
6
Notifier::Notifier
() {
7
subscribers.resize((
size_t
)
Observable::Type::Count
);
8
}
9
10
void
Notifier::notify
(
const
Observable
* observable)
const
{
11
for
(
auto
subscriber : subscribers[(
size_t
)observable->
getObservableType
()] ) {
12
subscriber->notice(observable);
13
}
14
}
15
16
void
Notifier::notify
(
const
Observable
& observable)
const
{
17
notify
(&observable);
18
}
Notifier.h
BPMNOS::Execution::Notifier::notify
void notify(const Observable *observable) const
Definition
Notifier.cpp:10
BPMNOS::Execution::Notifier::Notifier
Notifier()
Definition
Notifier.cpp:6
BPMNOS::Execution
Definition
Controller.h:9
BPMNOS::Execution::Observable
Definition
Observable.h:6
BPMNOS::Execution::Observable::Type::Count
@ Count
BPMNOS::Execution::Observable::getObservableType
virtual constexpr Type getObservableType() const =0