Mercurial > hg > orthanc-java
comparison CodeGeneration/CppNativeSDK.mustache @ 8:26c08ff926a3
added warning about auto-generated files
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Oct 2023 11:21:20 +0200 |
parents | c8f19e93ff99 |
children | 15dc698243ac |
comparison
equal
deleted
inserted
replaced
7:b14ed1ea3a23 | 8:26c08ff926a3 |
---|---|
19 * | 19 * |
20 * You should have received a copy of the GNU General Public License | 20 * You should have received a copy of the GNU General Public License |
21 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 21 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
22 **/ | 22 **/ |
23 | 23 |
24 | |
25 // WARNING: Auto-generated file. Do not modify it by hand. | |
26 | |
27 #include "JavaBytes.h" | |
28 #include "JavaEnvironment.h" | |
29 #include "JavaString.h" | |
30 #include "OrthancBytes.h" | |
31 #include "OrthancString.h" | |
32 | |
33 #include <orthanc/OrthancCPlugin.h> | |
34 | |
35 #include <stdexcept> | |
36 | |
37 extern OrthancPluginContext* context_; | |
24 | 38 |
25 {{#functions}} | 39 {{#functions}} |
26 | 40 |
27 JNIEXPORT {{return.c_type}} JNI_{{c_function}}(JNIEnv* env, jobject sdkObject{{#class_name}}, jlong self{{/class_name}}{{#args}}, {{c_type}} {{name}}{{/args}}) | 41 JNIEXPORT {{return.c_type}} JNI_{{c_function}}(JNIEnv* env, jobject sdkObject{{#class_name}}, jlong self{{/class_name}}{{#args}}, {{c_type}} {{name}}{{/args}}) |
28 { | 42 { |
157 } | 171 } |
158 } | 172 } |
159 | 173 |
160 {{/functions}} | 174 {{/functions}} |
161 | 175 |
162 static void JNI_LoadNatives(std::vector<JNINativeMethod>& methods) | 176 void JNI_LoadNatives(std::vector<JNINativeMethod>& methods) |
163 { | 177 { |
164 methods.clear(); | 178 methods.clear(); |
165 {{#functions}} | 179 {{#functions}} |
166 | 180 |
167 {{#java_signature}} | 181 {{#java_signature}} |