Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Macros | Functions
helper_base.hpp File Reference
#include <vector>
#include <memory>
#include <functional>
#include <jni.h>
#include <jau/jni/helper_jni.hpp>
#include "direct_bt/BTTypes0.hpp"
Include dependency graph for helper_base.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define rethrow_and_raise_java_exception(E)   rethrow_and_raise_java_exception_impl((E), __FILE__, __LINE__)
 Re-throw current exception and raise respective java exception using any matching function above. More...
 

Functions

jobject get_bluetooth_type (JNIEnv *env, const char *field_name)
 
void raise_java_exception (JNIEnv *env, const direct_bt::BTException &e, const char *file, int line)
 
void rethrow_and_raise_java_exception_impl (JNIEnv *env, const char *file, int line)
 Re-throw current exception and raise respective java exception using any matching function above. More...
 

Macro Definition Documentation

◆ rethrow_and_raise_java_exception

#define rethrow_and_raise_java_exception (   E)    rethrow_and_raise_java_exception_impl((E), __FILE__, __LINE__)

Re-throw current exception and raise respective java exception using any matching function above.

Definition at line 56 of file helper_base.hpp.

Function Documentation

◆ get_bluetooth_type()

jobject get_bluetooth_type ( JNIEnv *  env,
const char *  field_name 
)

Definition at line 38 of file helper_base.cxx.

Here is the call graph for this function:

◆ raise_java_exception()

void raise_java_exception ( JNIEnv *  env,
const direct_bt::BTException e,
const char *  file,
int  line 
)

Definition at line 49 of file helper_base.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rethrow_and_raise_java_exception_impl()

void rethrow_and_raise_java_exception_impl ( JNIEnv *  env,
const char *  file,
int  line 
)

Re-throw current exception and raise respective java exception using any matching function above.

Definition at line 56 of file helper_base.cxx.

Here is the call graph for this function: