CppPlugins/src/main/cpp/inc/event.h

22 lines
549 B
C
Raw Normal View History

2020-02-20 19:23:28 +01:00
#pragma once
#include <jni.h>
#include <string>
#include <map>
class Event {
private:
std::string name; //name of the event
jobject input; //original Event object (type CppEvent)
std::map<std::string, void*> data;
public:
2020-02-20 20:17:00 +01:00
virtual jobject getMap(JNIEnv* env);
virtual const std::string& getName() const;
virtual void* getData(JNIEnv* env, const std::string& name);
virtual void setData(const std::string& name, void* data);
2020-02-20 19:23:28 +01:00
2020-02-20 20:17:00 +01:00
virtual void reapply(JNIEnv* env, jobject jevent);
2020-02-20 19:23:28 +01:00
Event(JNIEnv* env, jobject jevent);
//virtual ~Event();
};