31 #ifndef LEDGER_CORE_EVENTPUBLISHER_HPP 32 #define LEDGER_CORE_EVENTPUBLISHER_HPP 34 #include <api/EventBus.hpp> 35 #include <api/EventPublisher.hpp> 36 #include <api/Event.hpp> 37 #include <api/EventCode.hpp> 38 #include <api/EventReceiver.hpp> 39 #include <unordered_set> 41 #include <async/DedicatedContext.hpp> 46 typedef std::function<bool (const std::shared_ptr<api::Event>&)> EventFilter;
50 std::shared_ptr<api::EventBus>
getEventBus()
override;
51 void post(
const std::shared_ptr<api::Event> &event)
override;
52 void postSticky(
const std::shared_ptr<api::Event> &event, int32_t tag)
override;
53 void relay(
const std::shared_ptr<api::EventBus> &bus)
override;
54 void setFilter(
const EventFilter& filter);
58 std::shared_ptr<EventBus> _bus;
59 std::shared_ptr<api::EventReceiver> _receiver;
65 #endif //LEDGER_CORE_EVENTPUBLISHER_HPP std::shared_ptr< api::EventBus > getEventBus() override
Definition: EventPublisher.cpp:65
Definition: EventPublisher.hpp:47
Definition: EventPublisher.hpp:24
Definition: Account.cpp:8
Definition: DedicatedContext.hpp:39