Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Public Attributes | List of all members
jau::uuid16_t Class Reference

#include <uuid.hpp>

Inheritance diagram for jau::uuid16_t:
Collaboration diagram for jau::uuid16_t:

Public Member Functions

 uuid16_t (const std::string &str)
 
 uuid16_t (const uuid16_t &o) noexcept=default
 
 uuid16_t (uint16_t const v) noexcept
 
 uuid16_t (uint8_t const *const buffer, lb_endian_t const le_or_be) noexcept
 
 uuid16_t (uuid16_t &&o) noexcept=default
 
const uint8_t * data () const noexcept override
 returns the pointer to the uuid data of size getTypeSize() More...
 
uuid16_toperator= (const uuid16_t &o) noexcept=default
 
uuid16_toperator= (uuid16_t &&o) noexcept=default
 
jau::nsize_t put (uint8_t *const buffer, lb_endian_t const le_or_be) const noexcept override
 
std::string toString () const noexcept override
 Returns the string representation in BE network order, i.e. More...
 
std::string toUUID128String (uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const le_octet_index=12) const noexcept override
 Returns the uuid128_t string representation in BE network order, i.e. More...
 
- Public Member Functions inherited from jau::uuid_t
 uuid_t (const uuid_t &o) noexcept=default
 
 uuid_t (uuid_t &&o) noexcept=default
 
virtual ~uuid_t () noexcept=default
 
std::unique_ptr< uuid_tclone () const noexcept
 
virtual const uint8_t * data () const noexcept=0
 returns the pointer to the uuid data of size getTypeSize() More...
 
bool equivalent (uuid_t const &o) const noexcept
 Relaxed equality operator. More...
 
TypeSize getTypeSize () const noexcept
 
jau::nsize_t getTypeSizeInt () const noexcept
 
std::string getTypeSizeString () const noexcept
 
bool operator!= (uuid_t const &o) const noexcept
 Strict not-equal operator. More...
 
uuid_toperator= (const uuid_t &o) noexcept=default
 
uuid_toperator= (uuid_t &&o) noexcept=default
 
bool operator== (uuid_t const &o) const noexcept
 Strict equality operator. More...
 
virtual jau::nsize_t put (uint8_t *const buffer, lb_endian_t const le_or_be) const noexcept=0
 
virtual std::string toString () const noexcept=0
 Returns the string representation in BE network order, i.e. More...
 
uuid128_t toUUID128 (uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const uuid32_le_octet_index=12) const noexcept
 
virtual std::string toUUID128String (uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const le_octet_index=12) const noexcept=0
 Returns the uuid128_t string representation in BE network order, i.e. More...
 

Public Attributes

uint16_t value
 

Additional Inherited Members

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

Detailed Description

Examples
dbt_peripheral00.cpp, dbt_repeater00.cpp, and dbt_scanner10.cpp.

Definition at line 151 of file uuid.hpp.

Constructor & Destructor Documentation

◆ uuid16_t() [1/5]

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

Definition at line 155 of file uuid.hpp.

◆ uuid16_t() [2/5]

uuid16_t::uuid16_t ( const std::string &  str)

Definition at line 218 of file uuid.cpp.

◆ uuid16_t() [3/5]

jau::uuid16_t::uuid16_t ( uint8_t const *const  buffer,
lb_endian_t const  le_or_be 
)
inlinenoexcept

Definition at line 160 of file uuid.hpp.

◆ uuid16_t() [4/5]

jau::uuid16_t::uuid16_t ( const uuid16_t o)
defaultnoexcept

◆ uuid16_t() [5/5]

jau::uuid16_t::uuid16_t ( uuid16_t &&  o)
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ data()

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

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

Implements jau::uuid_t.

Definition at line 168 of file uuid.hpp.

Here is the caller graph for this function:

◆ toString()

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

Returns the string representation in BE network order, i.e.

00000000-0000-1000-8000-00805F9B34FB.

Implements jau::uuid_t.

Definition at line 135 of file uuid.cpp.

Here is the caller graph for this function:

◆ toUUID128String()

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

Returns the uuid128_t string representation in BE network order, i.e.

00000000-0000-1000-8000-00805F9B34FB.

Implements jau::uuid_t.

Definition at line 148 of file uuid.cpp.

◆ put()

jau::nsize_t jau::uuid16_t::put ( uint8_t *const  buffer,
lb_endian_t const  le_or_be 
) const
inlineoverridevirtualnoexcept

Implements jau::uuid_t.

Definition at line 172 of file uuid.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ value

uint16_t jau::uuid16_t::value

Definition at line 153 of file uuid.hpp.


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