dengzedong
2024-10-14 3e18d4bfbf2c657b08b21512c2d884cc9d59df7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
 
#ifndef ${pyName}_H
\#define ${pyName}_H
 
#endif //PCH_H
 
#ifdef _EXPORTING
\#define API_DECLSPEC  extern "C"  __declspec(dllexport)
\#else
\#define API_DECLSPEC  extern "C"  __declspec(dllimport)
#endif
// 输入参数 
 
\#include <string>
//\#include "PyGILThreadLock.h"
\#include <iostream>
\#include "Python.h"
\#include "jni.h"
 
using namespace std;
 
#{foreach} ($entity in $modelMethods)
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);
 
#{end}