Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | List of all members
jau::JavaUplink Class Referenceabstract

Sharing the anonymous Java object (JavaAnon), i.e. More...

#include <java_uplink.hpp>

Inheritance diagram for jau::JavaUplink:
Collaboration diagram for jau::JavaUplink:

Public Member Functions

virtual std::string toString () const noexcept
 
virtual std::string get_java_class () const noexcept=0
 
std::string javaObjectToString () const noexcept
 
std::shared_ptr< JavaAnongetJavaObject () noexcept
 
void setJavaObject (std::shared_ptr< JavaAnon > objRef) noexcept
 Assigns a new shared JavaAnon reference, replaced item might be deleted via JNI from dtor. More...
 
void setJavaObject () noexcept
 Resets the shared JavaAnon reference, the replaced item might be deleted via JNI from dtor. More...
 
void clearJavaObject () noexcept
 Clears the java reference, i.e. More...
 
virtual void checkValid () const
 Throws an IllegalStateException if isValid() == false. More...
 
virtual ~JavaUplink () noexcept
 

Detailed Description

Sharing the anonymous Java object (JavaAnon), i.e.

exposing the Java object uplink to the C++ implementation.

Definition at line 57 of file java_uplink.hpp.

Constructor & Destructor Documentation

◆ ~JavaUplink()

virtual jau::JavaUplink::~JavaUplink ( )
inlinevirtualnoexcept

Definition at line 95 of file java_uplink.hpp.

Member Function Documentation

◆ checkValid()

virtual void jau::JavaUplink::checkValid ( ) const
inlinevirtual

Throws an IllegalStateException if isValid() == false.

Definition at line 93 of file java_uplink.hpp.

◆ clearJavaObject()

void jau::JavaUplink::clearJavaObject ( )
inlinenoexcept

Clears the java reference, i.e.

nulling it, without deleting the global reference via JNI.

Definition at line 84 of file java_uplink.hpp.

◆ get_java_class()

virtual std::string jau::JavaUplink::get_java_class ( ) const
pure virtualnoexcept

◆ getJavaObject()

std::shared_ptr<JavaAnon> jau::JavaUplink::getJavaObject ( )
inlinenoexcept

Definition at line 75 of file java_uplink.hpp.

◆ javaObjectToString()

std::string jau::JavaUplink::javaObjectToString ( ) const
inlinenoexcept

Definition at line 66 of file java_uplink.hpp.

Here is the caller graph for this function:

◆ setJavaObject() [1/2]

void jau::JavaUplink::setJavaObject ( )
inlinenoexcept

Resets the shared JavaAnon reference, the replaced item might be deleted via JNI from dtor.

Definition at line 81 of file java_uplink.hpp.

◆ setJavaObject() [2/2]

void jau::JavaUplink::setJavaObject ( std::shared_ptr< JavaAnon objRef)
inlinenoexcept

Assigns a new shared JavaAnon reference, replaced item might be deleted via JNI from dtor.

Definition at line 78 of file java_uplink.hpp.

Here is the caller graph for this function:

◆ toString()

virtual std::string jau::JavaUplink::toString ( ) const
inlinevirtualnoexcept

Reimplemented in direct_bt::BTAdapter, direct_bt::BTManager, direct_bt::BTDevice, direct_bt::BTGattChar, direct_bt::BTGattDesc, direct_bt::BTGattService, and direct_bt::BTObject.

Definition at line 62 of file java_uplink.hpp.

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

The documentation for this class was generated from the following file: