libGulliBLE
Loading...
Searching...
No Matches
ble::service Class Reference

#include <service.hpp>

Collaboration diagram for ble::service:

Classes

class  snapshot

Public Member Functions

 service (uuid u, service_type type, std::vector< std::shared_ptr< characteristic_base > > chrs={})
std::vector< std::shared_ptr< characteristic_base > > const & characteristics () const
std::vector< std::shared_ptr< characteristic_base > > & characteristics ()
service_type type () const
uuid const & svc_uuid () const
snapshot take_snapshot () const

Static Public Attributes

static constexpr ble_gatt_svc_def void_definition

Private Attributes

uuid _uuid
service_type _type
std::vector< std::shared_ptr< characteristic_base > > _chrs

Constructor & Destructor Documentation

◆ service()

ble::service::service ( uuid u,
service_type type,
std::vector< std::shared_ptr< characteristic_base > > chrs = {} )

Member Function Documentation

◆ characteristics() [1/2]

std::vector< std::shared_ptr< characteristic_base > > & ble::service::characteristics ( )
inlinenodiscard

◆ characteristics() [2/2]

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

◆ svc_uuid()

uuid const & ble::service::svc_uuid ( ) const
inlinenodiscard

◆ take_snapshot()

service::snapshot ble::service::take_snapshot ( ) const
nodiscard

◆ type()

service_type ble::service::type ( ) const
inlinenodiscard

Member Data Documentation

◆ _chrs

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

◆ _type

service_type ble::service::_type
private

◆ _uuid

uuid ble::service::_uuid
private

◆ void_definition

ble_gatt_svc_def ble::service::void_definition
staticconstexpr
Initial value:
= {
.type = 0,
.uuid = nullptr,
.includes = nullptr,
.characteristics = nullptr}

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