Skip to content
API Documentation
BastionGuard™
MultiEventSink.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <functional>
4#include <vector>
6
8
9class MultiEventSink final : public IEventSink {
10public:
11 void add(IEventSink& sink);
12 void onEvent(const rg_event& event) noexcept override;
13
14private:
15 std::vector<std::reference_wrapper<IEventSink>> sinks_;
16};
17
18} // namespace bastionguard::rootguard
void onEvent(const rg_event &event) noexcept override
std::vector< std::reference_wrapper< IEventSink > > sinks_