#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 //\#include "PyGILThreadLock.h" \#include \#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}