提交 | 用户 | 时间
|
449017
|
1 |
#pragma once |
D |
2 |
|
|
3 |
#ifndef ${pyName}_H |
|
4 |
\#define ${pyName}_H |
|
5 |
|
|
6 |
#endif //PCH_H |
|
7 |
|
|
8 |
#ifdef _EXPORTING |
|
9 |
\#define API_DECLSPEC extern "C" __declspec(dllexport) |
|
10 |
\#else |
|
11 |
\#define API_DECLSPEC extern "C" __declspec(dllimport) |
|
12 |
#endif |
|
13 |
// 输入参数 |
|
14 |
|
|
15 |
\#include <string> |
|
16 |
//\#include "PyGILThreadLock.h" |
|
17 |
\#include <iostream> |
|
18 |
\#include "Python.h" |
|
19 |
\#include "jni.h" |
|
20 |
|
|
21 |
using namespace std; |
|
22 |
|
|
23 |
#{foreach} ($entity in $modelMethods) |
|
24 |
jobject ${pyName}_${entity.methodName}(JNIEnv* env, #{foreach} ($column in [1..$entity.dataLength])jobjectArray data${column}, #{end}#{if}($entity.model==1)jobject model_path, #{end}jobject settings); |
|
25 |
|
|
26 |
#{end} |