libGulliBLE
ble::stored_characteristic< T > Class Template Reference

#include <characteristic.hpp>

Inheritance diagram for ble::stored_characteristic< T >:
Collaboration diagram for ble::stored_characteristic< T >:

Static Public Attributes

static constexpr bool has_synthetic_rw_methods
 True iff the do_read and do_write methods have already been automatically synthesized. If operator<< and operator>> are made available for T and mlab::bin_data, mlab::bin_stream, then we can synthesize those methods automatically. More...
 
- Static Public Attributes inherited from ble::characteristic_base
static constexpr ble_gatt_chr_def void_definition
 

Additional Inherited Members

- Public Member Functions inherited from ble::impl::stored_characteristic_base< T, mlab::bin_data::is_injectable< T >::value and mlab::bin_stream::is_extractable< T >::value >
 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
 
- 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
 

Member Data Documentation

◆ has_synthetic_rw_methods

template<class T >
constexpr bool ble::stored_characteristic< T >::has_synthetic_rw_methods
staticconstexpr
Initial value:
= mlab::bin_data::is_injectable<T>::value and
mlab::bin_stream::is_extractable<T>::value

True iff the do_read and do_write methods have already been automatically synthesized. If operator<< and operator>> are made available for T and mlab::bin_data, mlab::bin_stream, then we can synthesize those methods automatically.


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