ledger-core
Event.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from emitter.djinni
3 
4 #ifndef DJINNI_GENERATED_EVENT_HPP
5 #define DJINNI_GENERATED_EVENT_HPP
6 
7 #include <cstdint>
8 #include <memory>
9 #ifndef LIBCORE_EXPORT
10  #if defined(_MSC_VER)
11  #include <libcore_export.h>
12  #else
13  #define LIBCORE_EXPORT
14  #endif
15 #endif
16 
17 namespace ledger { namespace core { namespace api {
18 
19 class DynamicObject;
20 enum class EventCode;
21 
23 class LIBCORE_EXPORT Event {
24 public:
25  virtual ~Event() {}
26 
31  virtual EventCode getCode() = 0;
32 
37  virtual std::shared_ptr<DynamicObject> getPayload() = 0;
38 
43  virtual bool isSticky() = 0;
44 
49  virtual int32_t getStickyTag() = 0;
50 
57  static std::shared_ptr<Event> newInstance(EventCode code, const std::shared_ptr<DynamicObject> & payload);
58 };
59 
60 } } } // namespace ledger::core::api
61 #endif //DJINNI_GENERATED_EVENT_HPP
Definition: Account.cpp:8
EventCode
Definition: EventCode.hpp:20
Definition: Event.hpp:23