libGulliBLE
ble::service::snapshot Class Reference

#include <service.hpp>

Public Member Functions

 snapshot (service const &svc)
 
std::vector< std::shared_ptr< characteristic_base > > const & characteristics () const
 
service_type type () const
 
uuid get_svc_uuid () const
 
ble_gatt_svc_def get_definition () const
 

Private Attributes

service_type _type
 
std::vector< std::shared_ptr< characteristic_base > > _chrs
 
std::unique_ptr< ble_uuid_any_t > _nimble_svc_uuid
 
std::unique_ptr< ble_gatt_chr_def[]> _nimble_chr_defs
 

Constructor & Destructor Documentation

◆ snapshot()

ble::service::snapshot::snapshot ( service const &  svc)
explicit

Member Function Documentation

◆ characteristics()

std::vector< std::shared_ptr< characteristic_base > > const & ble::service::snapshot::characteristics ( ) const
inline

◆ get_definition()

ble_gatt_svc_def ble::service::snapshot::get_definition ( ) const

◆ get_svc_uuid()

uuid ble::service::snapshot::get_svc_uuid ( ) const
inline

◆ type()

service_type ble::service::snapshot::type ( ) const
inline

Member Data Documentation

◆ _chrs

std::vector<std::shared_ptr<characteristic_base> > ble::service::snapshot::_chrs
private

◆ _nimble_chr_defs

std::unique_ptr<ble_gatt_chr_def[]> ble::service::snapshot::_nimble_chr_defs
private

◆ _nimble_svc_uuid

std::unique_ptr<ble_uuid_any_t> ble::service::snapshot::_nimble_svc_uuid
private

◆ _type

service_type ble::service::snapshot::_type
private

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