ug4
invocation.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2012: Steinbeis Forschungszentrum (STZ Ölbronn)
3  * Author: Michael Hoffer
4  *
5  * This file is part of UG4.
6  *
7  * UG4 is free software: you can redistribute it and/or modify it under the
8  * terms of the GNU Lesser General Public License version 3 (as published by the
9  * Free Software Foundation) with the following additional attribution
10  * requirements (according to LGPL/GPL v3 §7):
11  *
12  * (1) The following notice must be displayed in the Appropriate Legal Notices
13  * of covered and combined works: "Based on UG4 (www.ug4.org/license)".
14  *
15  * (2) The following notice must be displayed at a prominent place in the
16  * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".
17  *
18  * (3) The following bibliography is recommended for citation and must be
19  * preserved in all covered files:
20  * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively
21  * parallel geometric multigrid solver on hierarchically distributed grids.
22  * Computing and visualization in science 16, 4 (2013), 151-164"
23  * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel
24  * flexible software system for simulating pde based models on high performance
25  * computers. Computing and visualization in science 16, 4 (2013), 165-179"
26  *
27  * This program is distributed in the hope that it will be useful,
28  * but WITHOUT ANY WARRANTY; without even the implied warranty of
29  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30  * GNU Lesser General Public License for more details.
31  */
32 
33 #include <map>
34 #include <sstream>
35 #include "registry/registry.h"
36 #include <jni.h>
37 
38 #include"bindings_vrl.h"
39 
40 #ifndef INVOKATION_H
41 #define INVOKATION_H
42 
43 namespace ug {
44 namespace vrl {
45 namespace invocation {
46 
47 //const std::string createMethodSignature(JNIEnv* env, const char* className,
48 // const char* methodName, bool readOnly, jobjectArray params);
49 
50 
61  JNIEnv *env,
64  jobjectArray params);
65 
78  JNIEnv *env,
80  const ug::bridge::IExportedClass* clazz,
81  bool readOnly,
82  std::string methodName,
83  jobjectArray params);
84 
95  JNIEnv *env,
97  std::string functionName,
98  jobjectArray params);
99 
109  std::string className);
110 
120  std::string className);
121 
123 
124 } // invocation::
125 } // vrl::
126 } // ug::
127 
128 #endif /* INVOKATION_H */
129 
node for class names
Definition: class_name_provider.h:65
describing information for constructor
Definition: class.h:353
This class describes a wrapper for a c++ - function, that is exported by ug.
Definition: global_function.h:186
Definition: class.h:110
Base class for exported Classes.
Definition: class.h:499
Registry for functions and classes that are exported to scripts and visualizations.
Definition: registry.h:138
const ug::bridge::ExportedConstructor * getConstructorBySignature(JNIEnv *env, ug::bridge::Registry *reg, ug::bridge::IExportedClass *eCls, jobjectArray params)
Definition: invocation.cpp:169
const ug::bridge::ExportedMethod * getMethodBySignature(JNIEnv *env, ug::bridge::Registry *reg, const ug::bridge::IExportedClass *clazz, bool readOnly, std::string methodName, jobjectArray params)
Definition: invocation.cpp:61
const ug::bridge::ClassNameNode * getClassNodePtrByName(ug::bridge::Registry *reg, std::string className)
Definition: invocation.cpp:217
void initClasses(ug::bridge::Registry &reg)
Definition: invocation.cpp:48
const ug::bridge::ExportedFunction * getFunctionBySignature(JNIEnv *env, ug::bridge::Registry *reg, std::string functionName, jobjectArray params)
Definition: invocation.cpp:125
const ug::bridge::IExportedClass * getExportedClassPtrByName(ug::bridge::Registry *reg, std::string className)
Definition: invocation.cpp:210
the ug namespace