libGulliBLE
ble::impl::stored_characteristic_base< T, bool > Class Template Reference

#include <characteristic.hpp>

Inheritance diagram for ble::impl::stored_characteristic_base< T, bool >:
Collaboration diagram for ble::impl::stored_characteristic_base< T, bool >:

Public Member Functions

 stored_characteristic_base (uuid const &u, access_type access, std::shared_ptr< mlab::observable< T > > init=nullptr)
 
 stored_characteristic_base (uuid const &u, access_type access, T init)
 
mlab::observable_cref< T > value () const
 
mlab::observable_ref< T > value ()
 
std::shared_ptr< mlab::observable< T > > const & value_ptr () const
 
- Public Member Functions inherited from ble::characteristic_base
 characteristic_base (uuid u, access_type access)
 
access_type access () const
 
uuid const & chr_uuid () const
 
ble_gatt_chr_def get_definition () const
 
virtual ~characteristic_base ()=default
 

Private Attributes

std::shared_ptr< mlab::observable< T > > _value
 

Additional Inherited Members

- Static Public Attributes inherited from ble::characteristic_base
static constexpr ble_gatt_chr_def void_definition
 
- Protected Member Functions inherited from ble::characteristic_base
virtual retcode on_access (std::uint16_t conn_handle, std::uint16_t attr_handle, ble_gatt_access_ctxt &ctxt)
 
virtual retcode on_read (std::uint16_t conn_handle, std::uint16_t attr_handle, ble_gatt_access_ctxt &ctxt)
 
virtual retcode on_write (std::uint16_t conn_handle, std::uint16_t attr_handle, ble_gatt_access_ctxt &ctxt)
 
virtual retcode do_read (mlab::bin_data &data, std::uint16_t conn_handle, std::uint16_t attr_handle)=0
 
virtual retcode do_write (mlab::bin_data const &data, std::uint16_t conn_handle, std::uint16_t attr_handle)=0
 

Constructor & Destructor Documentation

◆ stored_characteristic_base() [1/2]

template<class T , bool B>
ble::impl::stored_characteristic_base< T, B >::stored_characteristic_base ( uuid const &  u,
access_type  access,
std::shared_ptr< mlab::observable< T > >  init = nullptr 
)

◆ stored_characteristic_base() [2/2]

template<class T , bool B>
ble::impl::stored_characteristic_base< T, B >::stored_characteristic_base ( uuid const &  u,
access_type  access,
init 
)

Member Function Documentation

◆ value() [1/2]

template<class T , bool B>
mlab::observable_ref< T > ble::impl::stored_characteristic_base< T, B >::value
inline

◆ value() [2/2]

template<class T , bool B>
mlab::observable_cref< T > ble::impl::stored_characteristic_base< T, B >::value
inline

◆ value_ptr()

template<class T , bool B>
std::shared_ptr< mlab::observable< T > > const & ble::impl::stored_characteristic_base< T, B >::value_ptr
inline

Member Data Documentation

◆ _value

template<class T , bool >
std::shared_ptr<mlab::observable<T> > ble::impl::stored_characteristic_base< T, bool >::_value
private

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