HIVE SDK for C++
모듈
클래스
CPP
HIVE_JniHelper.h
1
12
#ifndef __HIVE_JNIHELPER_H__
13
#define __HIVE_JNIHELPER_H__
14
15
#if !PLATFORM_MAC && !PLATFORM_WINDOWS
16
#include <jni.h>
17
#include "HIVE_CPP.h"
18
19
NS_HIVE_BEGIN
20
21
class
HiveJniHelper {
22
public
:
23
static
jint setJavaVM(JavaVM* vm);
24
static
JavaVM* getJavaVM();
25
static
JNIEnv* getEnv();
26
private
:
27
static
JNIEnv* cacheEnv(JavaVM* jvm);
28
29
static
const
jint JNI_VERSION;
30
static
JavaVM* s_JavaVM;
31
};
32
33
NS_HIVE_END
34
#endif
35
#endif
//__HIVE_JNIHELPER_H__