ledger-core
src
api
EventBus.hpp
1
// AUTOGENERATED FILE - DO NOT MODIFY!
2
// This file generated by Djinni from emitter.djinni
3
4
#ifndef DJINNI_GENERATED_EVENTBUS_HPP
5
#define DJINNI_GENERATED_EVENTBUS_HPP
6
7
#include <memory>
8
#ifndef LIBCORE_EXPORT
9
#if defined(_MSC_VER)
10
#include <libcore_export.h>
11
#else
12
#define LIBCORE_EXPORT
13
#endif
14
#endif
15
16
namespace
ledger
{
namespace
core {
namespace
api {
17
18
class
EventReceiver;
19
class
ExecutionContext;
20
22
class
LIBCORE_EXPORT
EventBus
{
23
public
:
24
virtual
~
EventBus
() {}
25
31
virtual
void
subscribe(
const
std::shared_ptr<ExecutionContext> & context,
const
std::shared_ptr<EventReceiver> & receiver) = 0;
32
37
virtual
void
unsubscribe(
const
std::shared_ptr<EventReceiver> & receiver) = 0;
38
};
39
40
} } }
// namespace ledger::core::api
41
#endif //DJINNI_GENERATED_EVENTBUS_HPP
ledger
Definition:
Account.cpp:8
ledger::core::api::EventBus
Definition:
EventBus.hpp:22
Generated by
1.8.13