Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Public Attributes | List of all members
direct_bt::uuid16_t Class Reference

#include <UUID.hpp>

Inheritance diagram for direct_bt::uuid16_t:
Collaboration diagram for direct_bt::uuid16_t:

Public Member Functions

 uuid16_t (uint16_t const v) noexcept
 
 uuid16_t (uint8_t const *const buffer, jau::nsize_t const byte_offset, bool const littleEndian) noexcept
 
 uuid16_t (const uuid16_t &o) noexcept=default
 
 uuid16_t (uuid16_t &&o) noexcept=default
 
uuid16_toperator= (const uuid16_t &o) noexcept=default
 
uuid16_toperator= (uuid16_t &&o) noexcept=default
 
bool operator== (uuid_t const &o) const noexcept override
 
const uint8_t * data () const noexcept override
 returns the pointer to the uuid data of size getTypeSize() More...
 
std::string toString () const noexcept override
 
std::string toUUID128String (uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const le_octet_index=12) const noexcept override
 
- Public Member Functions inherited from direct_bt::uuid_t
virtual ~uuid_t () noexcept
 
 uuid_t (const uuid_t &o) noexcept=default
 
 uuid_t (uuid_t &&o) noexcept=default
 
uuid_toperator= (const uuid_t &o) noexcept=default
 
uuid_toperator= (uuid_t &&o) noexcept=default
 
bool operator!= (uuid_t const &o) const noexcept
 
TypeSize getTypeSize () const noexcept
 
jau::nsize_t getTypeSizeInt () const noexcept
 
uuid128_t toUUID128 (uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const uuid32_le_octet_index=12) const noexcept
 

Public Attributes

uint16_t value
 

Additional Inherited Members

- Public Types inherited from direct_bt::uuid_t
enum  TypeSize : jau::nsize_t { TypeSize::UUID16_SZ =2, TypeSize::UUID32_SZ =4, TypeSize::UUID128_SZ =16 }
 Underlying integer value present octet count. More...
 
- Static Public Member Functions inherited from direct_bt::uuid_t
static constexpr jau::nsize_t number (const TypeSize rhs) noexcept
 
static TypeSize toTypeSize (const jau::nsize_t size)
 
static std::unique_ptr< const uuid_tcreate (TypeSize const t, uint8_t const *const buffer, jau::nsize_t const byte_offset, bool const littleEndian)
 
- Protected Member Functions inherited from direct_bt::uuid_t
 uuid_t (TypeSize const type_)
 

Detailed Description

Examples
dbt_scanner00.cpp, dbt_scanner01.cpp, and dbt_scanner10.cpp.

Definition at line 98 of file UUID.hpp.

Constructor & Destructor Documentation

◆ uuid16_t() [1/4]

direct_bt::uuid16_t::uuid16_t ( uint16_t const  v)
inlinenoexcept

Definition at line 102 of file UUID.hpp.

◆ uuid16_t() [2/4]

direct_bt::uuid16_t::uuid16_t ( uint8_t const *const  buffer,
jau::nsize_t const  byte_offset,
bool const  littleEndian 
)
inlinenoexcept

Definition at line 105 of file UUID.hpp.

◆ uuid16_t() [3/4]

direct_bt::uuid16_t::uuid16_t ( const uuid16_t o)
defaultnoexcept

◆ uuid16_t() [4/4]

direct_bt::uuid16_t::uuid16_t ( uuid16_t &&  o)
defaultnoexcept

Member Function Documentation

◆ data()

const uint8_t* direct_bt::uuid16_t::data ( ) const
inlineoverridevirtualnoexcept

returns the pointer to the uuid data of size getTypeSize()

Reimplemented from direct_bt::uuid_t.

Definition at line 120 of file UUID.hpp.

◆ operator=() [1/2]

uuid16_t& direct_bt::uuid16_t::operator= ( const uuid16_t o)
defaultnoexcept

◆ operator=() [2/2]

uuid16_t& direct_bt::uuid16_t::operator= ( uuid16_t &&  o)
defaultnoexcept

◆ operator==()

bool direct_bt::uuid16_t::operator== ( uuid_t const &  o) const
inlineoverridevirtualnoexcept

Reimplemented from direct_bt::uuid_t.

Definition at line 113 of file UUID.hpp.

Here is the call graph for this function:

◆ toString()

std::string uuid16_t::toString ( ) const
overridevirtualnoexcept

Reimplemented from direct_bt::uuid_t.

Definition at line 80 of file UUID.cpp.

◆ toUUID128String()

std::string uuid16_t::toUUID128String ( uuid128_t const &  base_uuid = BT_BASE_UUID,
jau::nsize_t const  le_octet_index = 12 
) const
overridevirtualnoexcept

Reimplemented from direct_bt::uuid_t.

Definition at line 93 of file UUID.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ value

uint16_t direct_bt::uuid16_t::value

Definition at line 100 of file UUID.hpp.


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