1534 lines
45 KiB
C++
1534 lines
45 KiB
C++
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (https://www.swig.org).
|
|
* Version 4.4.1
|
|
*
|
|
* Do not make changes to this file unless you know what you are doing - modify
|
|
* the SWIG interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
#define SWIG_VERSION 0x040401
|
|
#define SWIGJAVA
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* This section contains generic SWIG labels for method/variable
|
|
* declarations/attributes, and other compiler dependent labels.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
|
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# elif defined(__HP_aCC)
|
|
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
|
|
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# else
|
|
# define SWIGTEMPLATEDISAMBIGUATOR
|
|
# endif
|
|
#endif
|
|
|
|
/* inline attribute */
|
|
#ifndef SWIGINLINE
|
|
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
|
|
# define SWIGINLINE inline
|
|
# else
|
|
# define SWIGINLINE
|
|
# endif
|
|
#endif
|
|
|
|
/* attribute recognised by some compilers to avoid 'unused' warnings */
|
|
#ifndef SWIGUNUSED
|
|
# if defined(__GNUC__)
|
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
# elif defined(__ICC)
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
|
# if defined(_MSC_VER)
|
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGUNUSEDPARM
|
|
# ifdef __cplusplus
|
|
# define SWIGUNUSEDPARM(p)
|
|
# else
|
|
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
/* internal SWIG method */
|
|
#ifndef SWIGINTERN
|
|
# define SWIGINTERN static SWIGUNUSED
|
|
#endif
|
|
|
|
/* internal inline SWIG method */
|
|
#ifndef SWIGINTERNINLINE
|
|
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
|
|
#endif
|
|
|
|
/* exporting methods */
|
|
#if defined(__GNUC__)
|
|
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
|
# ifndef GCC_HASCLASSVISIBILITY
|
|
# define GCC_HASCLASSVISIBILITY
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGEXPORT
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# if defined(STATIC_LINKED)
|
|
# define SWIGEXPORT
|
|
# else
|
|
# define SWIGEXPORT __declspec(dllexport)
|
|
# endif
|
|
# else
|
|
# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
|
|
# define SWIGEXPORT __attribute__ ((visibility("default")))
|
|
# else
|
|
# define SWIGEXPORT
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
/* calling conventions for Windows */
|
|
#ifndef SWIGSTDCALL
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# define SWIGSTDCALL __stdcall
|
|
# else
|
|
# define SWIGSTDCALL
|
|
# endif
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
|
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
|
# define _CRT_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
|
|
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
|
|
# define _SCL_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
|
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
|
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
|
#endif
|
|
|
|
/* Intel's compiler complains if a variable which was never initialised is
|
|
* cast to void, which is a common idiom which we use to indicate that we
|
|
* are aware a variable isn't used. So we just silence that warning.
|
|
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
|
*/
|
|
#ifdef __INTEL_COMPILER
|
|
# pragma warning disable 592
|
|
#endif
|
|
|
|
#if defined(__cplusplus) && __cplusplus >=201103L
|
|
# define SWIG_NOEXCEPT noexcept
|
|
#else
|
|
# define SWIG_NOEXCEPT throw()
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* swigcompat.swg
|
|
*
|
|
* Macros to provide support compatibility with older C and C++ standards.
|
|
*
|
|
* Note that SWIG expects __cplusplus to be defined to the appropriate C++ standard.
|
|
* MSVC users are urged to check and examine the /Zc:__cplusplus compiler option.
|
|
* See https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
|
|
* if you're missing it.
|
|
*/
|
|
#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
|
|
(defined __cplusplus && __cplusplus >= 201103L) || \
|
|
defined SWIG_HAVE_SNPRINTF) && \
|
|
!defined SWIG_NO_SNPRINTF
|
|
# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
|
|
# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
|
|
#else
|
|
/* Fallback versions ignore the buffer size, but most of our uses either have a
|
|
* fixed maximum possible size or dynamically allocate a buffer that's large
|
|
* enough.
|
|
*/
|
|
# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
|
|
# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
|
|
#endif
|
|
|
|
|
|
#include <jni.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
|
|
/* Support for throwing Java exceptions */
|
|
typedef enum {
|
|
SWIG_JavaOutOfMemoryError = 1,
|
|
SWIG_JavaIOException,
|
|
SWIG_JavaRuntimeException,
|
|
SWIG_JavaIndexOutOfBoundsException,
|
|
SWIG_JavaArithmeticException,
|
|
SWIG_JavaIllegalArgumentException,
|
|
SWIG_JavaNullPointerException,
|
|
SWIG_JavaDirectorPureVirtual,
|
|
SWIG_JavaUnknownError,
|
|
SWIG_JavaIllegalStateException,
|
|
} SWIG_JavaExceptionCodes;
|
|
|
|
typedef struct {
|
|
SWIG_JavaExceptionCodes code;
|
|
const char *java_exception;
|
|
} SWIG_JavaExceptions_t;
|
|
|
|
|
|
static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
|
|
jclass excep;
|
|
static const SWIG_JavaExceptions_t java_exceptions[] = {
|
|
{ SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
|
|
{ SWIG_JavaIOException, "java/io/IOException" },
|
|
{ SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
|
|
{ SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
|
|
{ SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
|
|
{ SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
|
|
{ SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
|
|
{ SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
|
|
{ SWIG_JavaUnknownError, "java/lang/UnknownError" },
|
|
{ SWIG_JavaIllegalStateException, "java/lang/IllegalStateException" },
|
|
{ (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
|
|
};
|
|
const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
|
|
|
|
while (except_ptr->code != code && except_ptr->code)
|
|
except_ptr++;
|
|
|
|
jenv->ExceptionClear();
|
|
excep = jenv->FindClass(except_ptr->java_exception);
|
|
if (excep)
|
|
jenv->ThrowNew(excep, msg);
|
|
}
|
|
|
|
|
|
/* Contract support */
|
|
|
|
#define SWIG_contract_assert(nullreturn, expr, msg) do { if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } } while (0)
|
|
|
|
|
|
#ifdef __cplusplus
|
|
#include <utility>
|
|
/* SwigValueWrapper is described in swig.swg */
|
|
template<typename T> class SwigValueWrapper {
|
|
struct SwigSmartPointer {
|
|
T *ptr;
|
|
SwigSmartPointer(T *p) : ptr(p) { }
|
|
~SwigSmartPointer() { delete ptr; }
|
|
SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
|
|
void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
|
|
} pointer;
|
|
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
|
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
|
|
public:
|
|
SwigValueWrapper() : pointer(0) { }
|
|
SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
|
|
#if __cplusplus >=201103L
|
|
SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
|
|
operator T&&() const { return std::move(*pointer.ptr); }
|
|
#else
|
|
operator T&() const { return *pointer.ptr; }
|
|
#endif
|
|
T *operator&() const { return pointer.ptr; }
|
|
static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
|
|
};
|
|
|
|
/*
|
|
* SwigValueInit() is a generic initialisation solution as the following approach:
|
|
*
|
|
* T c_result = T();
|
|
*
|
|
* doesn't compile for all types for example:
|
|
*
|
|
* unsigned int c_result = unsigned int();
|
|
*/
|
|
template <typename T> T SwigValueInit() {
|
|
return T();
|
|
}
|
|
|
|
#if __cplusplus >=201103L
|
|
# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
|
|
#else
|
|
# define SWIG_STD_MOVE(OBJ) OBJ
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if defined(__cplusplus) && (__cplusplus >=201103L)
|
|
# define SWIG_OVERRIDE override
|
|
#else
|
|
# define SWIG_OVERRIDE
|
|
#endif
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
SWIGINTERN std::vector< float >::const_reference std_vector_Sl_float_Sg__get_impl(std::vector< float > *self,int i){
|
|
// at will throw if needed, swig will handle
|
|
return self->at(i);
|
|
}
|
|
SWIGINTERN std::vector< float >::value_type std_vector_Sl_float_Sg__set(std::vector< float > *self,int i,std::vector< float >::value_type const &VECTOR_VALUE_IN){
|
|
const float old = self->at(i);
|
|
self->at(i) = VECTOR_VALUE_IN;
|
|
return old;
|
|
}
|
|
SWIGINTERN int32_t std_vector_Sl_float_Sg__size(std::vector< float > const *self){
|
|
return self->size();
|
|
}
|
|
SWIGINTERN void std_vector_Sl_float_Sg__removeRange(std::vector< float > *self,int32_t from,int32_t to){
|
|
self->erase(self->begin()+from, self->begin()+to);
|
|
}
|
|
|
|
#include "iAcceleration.hpp"
|
|
#include "iAngle.hpp"
|
|
#include "iButton.hpp"
|
|
#include "iClock.hpp"
|
|
#include "iCollision.hpp"
|
|
#include "iDistance.hpp"
|
|
#include "iDistanceInterrupter.hpp"
|
|
#include "iEC.hpp"
|
|
#include "iElectromagnet.hpp"
|
|
#include "iEmg.hpp"
|
|
#include "iGas.hpp"
|
|
#include "iGps.hpp"
|
|
#include "iGyroscope.hpp"
|
|
#include "iHallEffect.hpp"
|
|
#include "iHeartRate.hpp"
|
|
#include "iHumidity.hpp"
|
|
#include "iLight.hpp"
|
|
#include "iLineFinder.hpp"
|
|
#include "iMagnetometer.hpp"
|
|
#include "iMoisture.hpp"
|
|
#include "iMotion.hpp"
|
|
#include "iOrp.hpp"
|
|
#include "iPH.hpp"
|
|
#include "iPressure.hpp"
|
|
#include "iProximity.hpp"
|
|
#include "iTemperature.hpp"
|
|
#include "iVDiv.hpp"
|
|
#include "iWater.hpp"
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_new_1floatVector_1_1SWIG_10(JNIEnv *jenv, jclass jcls) {
|
|
jlong jresult = 0 ;
|
|
std::vector< float > *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (std::vector< float > *)new std::vector< float >();
|
|
*(std::vector< float > **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_new_1floatVector_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong jresult = 0 ;
|
|
std::vector< float >::size_type arg1 ;
|
|
std::vector< float > *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = (std::vector< float >::size_type)jarg1;
|
|
result = (std::vector< float > *)new std::vector< float >(SWIG_STD_MOVE(arg1));
|
|
*(std::vector< float > **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_new_1floatVector_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
std::vector< float > *arg1 = 0 ;
|
|
std::vector< float > *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
if (!arg1) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "std::vector< float > const & is null");
|
|
return 0;
|
|
}
|
|
result = (std::vector< float > *)new std::vector< float >((std::vector< float > const &)*arg1);
|
|
*(std::vector< float > **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_floatVector_1capacity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
std::vector< float > *arg1 = 0 ;
|
|
std::vector< float >::size_type result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
result = ((std::vector< float > const *)arg1)->capacity();
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_floatVector_1reserve(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
std::vector< float > *arg1 = 0 ;
|
|
std::vector< float >::size_type arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
arg2 = (std::vector< float >::size_type)jarg2;
|
|
(arg1)->reserve(SWIG_STD_MOVE(arg2));
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_floatVector_1isEmpty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
std::vector< float > *arg1 = 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
result = (bool)((std::vector< float > const *)arg1)->empty();
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_floatVector_1clear(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
std::vector< float > *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
(arg1)->clear();
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_floatVector_1push_1back(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jfloat jarg2) {
|
|
std::vector< float > *arg1 = 0 ;
|
|
std::vector< float >::value_type *arg2 = 0 ;
|
|
std::vector< float >::value_type temp2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
temp2 = (std::vector< float >::value_type)jarg2;
|
|
arg2 = &temp2;
|
|
(arg1)->push_back((std::vector< float >::value_type const &)*arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_floatVector_1get_1impl(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
jfloat jresult = 0 ;
|
|
std::vector< float > *arg1 = 0 ;
|
|
int arg2 ;
|
|
std::vector< float >::value_type *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
arg2 = (int)jarg2;
|
|
try {
|
|
result = (std::vector< float >::value_type *) &std_vector_Sl_float_Sg__get_impl(arg1,arg2);
|
|
} catch(std::out_of_range &_e) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
|
|
return 0;
|
|
}
|
|
jresult = (jfloat)*result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_floatVector_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jfloat jarg3) {
|
|
jfloat jresult = 0 ;
|
|
std::vector< float > *arg1 = 0 ;
|
|
int arg2 ;
|
|
std::vector< float >::value_type *arg3 = 0 ;
|
|
std::vector< float >::value_type temp3 ;
|
|
std::vector< float >::value_type result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
arg2 = (int)jarg2;
|
|
temp3 = (std::vector< float >::value_type)jarg3;
|
|
arg3 = &temp3;
|
|
try {
|
|
result = (std::vector< float >::value_type)std_vector_Sl_float_Sg__set(arg1,arg2,(float const &)*arg3);
|
|
} catch(std::out_of_range &_e) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, (&_e)->what());
|
|
return 0;
|
|
}
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_floatVector_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jint jresult = 0 ;
|
|
std::vector< float > *arg1 = 0 ;
|
|
int32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
result = (int32_t)std_vector_Sl_float_Sg__size((std::vector< float > const *)arg1);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_floatVector_1removeRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
|
|
std::vector< float > *arg1 = 0 ;
|
|
int32_t arg2 ;
|
|
int32_t arg3 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
arg2 = (int32_t)jarg2;
|
|
arg3 = (int32_t)jarg3;
|
|
std_vector_Sl_float_Sg__removeRange(arg1,arg2,arg3);
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1floatVector(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
std::vector< float > *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(std::vector< float > **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iAccelerationSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iAcceleration *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iAcceleration **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iAccelerationSwigImpl_1getAcceleration(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
upm::iAcceleration *arg1 = 0 ;
|
|
std::vector< float > result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iAcceleration **)&jarg1;
|
|
result = (arg1)->getAcceleration();
|
|
*(std::vector< float > **)&jresult = new std::vector< float >(result);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iAngleSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iAngle *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iAngle **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iAngleSwigImpl_1getAngle(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iAngle *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iAngle **)&jarg1;
|
|
result = (float)(arg1)->getAngle();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iButtonSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iButton *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iButton **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iButtonSwigImpl_1isPressed(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
upm::iButton *arg1 = 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iButton **)&jarg1;
|
|
result = (bool)(arg1)->isPressed();
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iClockSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iClock *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iClock **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iClockSwigImpl_1getTime(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
upm::iClock *arg1 = 0 ;
|
|
unsigned long result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iClock **)&jarg1;
|
|
result = (unsigned long)(arg1)->getTime();
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iCollisionSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iCollision *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iCollision **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iCollisionSwigImpl_1isColliding(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
upm::iCollision *arg1 = 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iCollision **)&jarg1;
|
|
result = (bool)(arg1)->isColliding();
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iDistanceSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iDistance *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iDistance **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iDistanceSwigImpl_1getDistance(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iDistance *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iDistance **)&jarg1;
|
|
result = (float)(arg1)->getDistance();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iDistanceSwigImpl_1convertCmTo(JNIEnv *jenv, jclass jcls, jfloat jarg1, jint jarg2) {
|
|
jfloat jresult = 0 ;
|
|
float arg1 ;
|
|
upm::DistanceUnit arg2 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = (float)jarg1;
|
|
arg2 = (upm::DistanceUnit)jarg2;
|
|
result = (float)upm::iDistance::convertCmTo(arg1,arg2);
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iDistanceInterrupterSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iDistanceInterrupter *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iDistanceInterrupter **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iDistanceInterrupterSwigImpl_1objectDetected(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
upm::iDistanceInterrupter *arg1 = 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iDistanceInterrupter **)&jarg1;
|
|
result = (bool)(arg1)->objectDetected();
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iECSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iEC *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iEC **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iECSwigImpl_1getECValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iEC *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iEC **)&jarg1;
|
|
result = (float)(arg1)->getECValue();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iElectromagnetSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iElectromagnet *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iElectromagnet **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iElectromagnetSwigImpl_1on(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
upm::iElectromagnet *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iElectromagnet **)&jarg1;
|
|
(arg1)->on();
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iElectromagnetSwigImpl_1off(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
upm::iElectromagnet *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iElectromagnet **)&jarg1;
|
|
(arg1)->off();
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iEmgSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iEmg *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iEmg **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iEmgSwigImpl_1getVolts(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iEmg *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iEmg **)&jarg1;
|
|
result = (float)(arg1)->getVolts();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iGasSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iGas *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iGas **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iGasSwigImpl_1getConcentration(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iGas *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iGas **)&jarg1;
|
|
result = (float)(arg1)->getConcentration();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iGpsSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iGps *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iGps **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iGpsSwigImpl_1enable(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
|
|
upm::iGps *arg1 = 0 ;
|
|
bool arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iGps **)&jarg1;
|
|
arg2 = jarg2 ? true : false;
|
|
(arg1)->enable(arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iGyroscopeSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iGyroscope *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iGyroscope **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iGyroscopeSwigImpl_1getGyroscope(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
upm::iGyroscope *arg1 = 0 ;
|
|
std::vector< float > result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iGyroscope **)&jarg1;
|
|
result = (arg1)->getGyroscope();
|
|
*(std::vector< float > **)&jresult = new std::vector< float >(result);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iHallEffectSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iHallEffect *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iHallEffect **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iHallEffectSwigImpl_1magnetDetected(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
upm::iHallEffect *arg1 = 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iHallEffect **)&jarg1;
|
|
result = (bool)(arg1)->magnetDetected();
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iHeartRateSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iHeartRate *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iHeartRate **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iHeartRateSwigImpl_1getHeartRate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jint jresult = 0 ;
|
|
upm::iHeartRate *arg1 = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iHeartRate **)&jarg1;
|
|
result = (int)(arg1)->getHeartRate();
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iHumiditySwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iHumidity *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iHumidity **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iHumiditySwigImpl_1getHumidity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iHumidity *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iHumidity **)&jarg1;
|
|
result = (float)(arg1)->getHumidity();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iLightSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iLight *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iLight **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iLightSwigImpl_1getLuminance(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iLight *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iLight **)&jarg1;
|
|
result = (float)(arg1)->getLuminance();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iLineFinderSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iLineFinder *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iLineFinder **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iLineFinderSwigImpl_1whiteDetected(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
upm::iLineFinder *arg1 = 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iLineFinder **)&jarg1;
|
|
result = (bool)(arg1)->whiteDetected();
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iLineFinderSwigImpl_1blackDetected(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
upm::iLineFinder *arg1 = 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iLineFinder **)&jarg1;
|
|
result = (bool)(arg1)->blackDetected();
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iMagnetometerSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iMagnetometer *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iMagnetometer **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iMagnetometerSwigImpl_1getMagnetometer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
upm::iMagnetometer *arg1 = 0 ;
|
|
std::vector< float > result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iMagnetometer **)&jarg1;
|
|
result = (arg1)->getMagnetometer();
|
|
*(std::vector< float > **)&jresult = new std::vector< float >(result);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iMoistureSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iMoisture *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iMoisture **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iMoistureSwigImpl_1getMoisture(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jint jresult = 0 ;
|
|
upm::iMoisture *arg1 = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iMoisture **)&jarg1;
|
|
result = (int)(arg1)->getMoisture();
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iMotionSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iMotion *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iMotion **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iMotionSwigImpl_1motionDetected(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
upm::iMotion *arg1 = 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iMotion **)&jarg1;
|
|
result = (bool)(arg1)->motionDetected();
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iOrpSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iOrp *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iOrp **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iOrpSwigImpl_1getORPValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iOrp *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iOrp **)&jarg1;
|
|
result = (float)(arg1)->getORPValue();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iPHSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iPH *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iPH **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iPHSwigImpl_1getPH(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iPH *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iPH **)&jarg1;
|
|
result = (float)(arg1)->getPH();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iPressureSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iPressure *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iPressure **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iPressureSwigImpl_1getPressure(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iPressure *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iPressure **)&jarg1;
|
|
result = (float)(arg1)->getPressure();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iPressureSwigImpl_1convertPaTo(JNIEnv *jenv, jclass jcls, jfloat jarg1, jint jarg2) {
|
|
jfloat jresult = 0 ;
|
|
float arg1 ;
|
|
upm::PressureUnit arg2 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = (float)jarg1;
|
|
arg2 = (upm::PressureUnit)jarg2;
|
|
result = (float)upm::iPressure::convertPaTo(arg1,arg2);
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iProximitySwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iProximity *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iProximity **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iProximitySwigImpl_1getValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iProximity *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iProximity **)&jarg1;
|
|
result = (float)(arg1)->getValue();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iTemperatureSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iTemperature *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iTemperature **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iTemperatureSwigImpl_1getTemperature(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jfloat jresult = 0 ;
|
|
upm::iTemperature *arg1 = 0 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iTemperature **)&jarg1;
|
|
result = (float)(arg1)->getTemperature();
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jfloat JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iTemperatureSwigImpl_1convertCelsiusTo(JNIEnv *jenv, jclass jcls, jfloat jarg1, jint jarg2) {
|
|
jfloat jresult = 0 ;
|
|
float arg1 ;
|
|
upm::TemperatureUnit arg2 ;
|
|
float result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = (float)jarg1;
|
|
arg2 = (upm::TemperatureUnit)jarg2;
|
|
result = (float)upm::iTemperature::convertCelsiusTo(arg1,arg2);
|
|
jresult = (jfloat)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iVDivSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iVDiv *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iVDiv **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iVDivSwigImpl_1getValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
upm::iVDiv *arg1 = 0 ;
|
|
unsigned int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iVDiv **)&jarg1;
|
|
result = (unsigned int)(arg1)->getValue();
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_delete_1iWaterSwigImpl(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
upm::iWater *arg1 = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(upm::iWater **)&jarg1;
|
|
delete arg1;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iWaterSwigImpl_1isWet(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
upm::iWater *arg1 = 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(upm::iWater **)&jarg1;
|
|
result = (bool)(arg1)->isWet();
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iAccelerationSwigImpl_1iAcceleration_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iAcceleration **)&baseptr = *(upm::iAcceleration **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iAngleSwigImpl_1iAngle_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iAngle **)&baseptr = *(upm::iAngle **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iButtonSwigImpl_1iButton_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iButton **)&baseptr = *(upm::iButton **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iClockSwigImpl_1iClock_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iClock **)&baseptr = *(upm::iClock **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iCollisionSwigImpl_1iCollision_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iCollision **)&baseptr = *(upm::iCollision **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iDistanceSwigImpl_1iDistance_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iDistance **)&baseptr = *(upm::iDistance **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iDistanceInterrupterSwigImpl_1iDistanceInterrupter_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iDistanceInterrupter **)&baseptr = *(upm::iDistanceInterrupter **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iECSwigImpl_1iEC_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iEC **)&baseptr = *(upm::iEC **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iElectromagnetSwigImpl_1iElectromagnet_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iElectromagnet **)&baseptr = *(upm::iElectromagnet **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iEmgSwigImpl_1iEmg_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iEmg **)&baseptr = *(upm::iEmg **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iGasSwigImpl_1iGas_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iGas **)&baseptr = *(upm::iGas **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iGpsSwigImpl_1iGps_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iGps **)&baseptr = *(upm::iGps **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iGyroscopeSwigImpl_1iGyroscope_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iGyroscope **)&baseptr = *(upm::iGyroscope **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iHallEffectSwigImpl_1iHallEffect_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iHallEffect **)&baseptr = *(upm::iHallEffect **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iHeartRateSwigImpl_1iHeartRate_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iHeartRate **)&baseptr = *(upm::iHeartRate **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iHumiditySwigImpl_1iHumidity_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iHumidity **)&baseptr = *(upm::iHumidity **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iLightSwigImpl_1iLight_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iLight **)&baseptr = *(upm::iLight **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iLineFinderSwigImpl_1iLineFinder_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iLineFinder **)&baseptr = *(upm::iLineFinder **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iMagnetometerSwigImpl_1iMagnetometer_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iMagnetometer **)&baseptr = *(upm::iMagnetometer **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iMoistureSwigImpl_1iMoisture_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iMoisture **)&baseptr = *(upm::iMoisture **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iMotionSwigImpl_1iMotion_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iMotion **)&baseptr = *(upm::iMotion **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iOrpSwigImpl_1iOrp_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iOrp **)&baseptr = *(upm::iOrp **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iPHSwigImpl_1iPH_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iPH **)&baseptr = *(upm::iPH **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iPressureSwigImpl_1iPressure_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iPressure **)&baseptr = *(upm::iPressure **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iProximitySwigImpl_1iProximity_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iProximity **)&baseptr = *(upm::iProximity **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iTemperatureSwigImpl_1iTemperature_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iTemperature **)&baseptr = *(upm::iTemperature **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iVDivSwigImpl_1iVDiv_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iVDiv **)&baseptr = *(upm::iVDiv **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
SWIGEXPORT jlong JNICALL Java_upm_1interfaces_javaupm_1interfacesJNI_iWaterSwigImpl_1iWater_1GetInterfaceCPtr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
jlong baseptr = 0;
|
|
(void)jenv;
|
|
(void)jcls;
|
|
*(upm::iWater **)&baseptr = *(upm::iWater **)&jarg1;
|
|
return baseptr;
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|