ledger-core
EventCode.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from events.djinni
3 
4 #ifndef DJINNI_GENERATED_EVENTCODE_HPP_JNI_
5 #define DJINNI_GENERATED_EVENTCODE_HPP_JNI_
6 
7 #include "../../api/EventCode.hpp"
8 #include "djinni_support.hpp"
9 
10 namespace djinni_generated {
11 
13 public:
15  using JniType = jobject;
16 
17  using Boxed = EventCode;
18 
19  static CppType toCpp(JNIEnv* jniEnv, JniType j) { return static_cast<CppType>(::djinni::JniClass<EventCode>::get().ordinal(jniEnv, j)); }
20  static ::djinni::LocalRef<JniType> fromCpp(JNIEnv* jniEnv, CppType c) { return ::djinni::JniClass<EventCode>::get().create(jniEnv, static_cast<jint>(c)); }
21 
22 private:
23  EventCode() : JniEnum("co/ledger/core/EventCode") {}
24  friend ::djinni::JniClass<EventCode>;
25 };
26 
27 } // namespace djinni_generated
28 #endif //DJINNI_GENERATED_EVENTCODE_HPP_JNI_
Definition: djinni_support.hpp:551
Definition: Account.cpp:22
Definition: djinni_support.hpp:223
EventCode
Definition: EventCode.hpp:20
Definition: EventCode.hpp:12