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

#include <uuid.hpp>

Inheritance diagram for jau::uuid32_t:
Collaboration diagram for jau::uuid32_t:

Public Member Functions

 uuid32_t (const std::string &str)
 
 uuid32_t (const uuid32_t &o) noexcept=default
 
 uuid32_t (uint32_t const v) noexcept
 
 uuid32_t (uint8_t const *const buffer, lb_endian_t const le_or_be) noexcept
 
 uuid32_t (uuid32_t &&o) noexcept=default
 
const uint8_t * data () const noexcept override
 returns the pointer to the uuid data of size getTypeSize() More...
 
uuid32_toperator= (const uuid32_t &o) noexcept=default
 
uuid32_toperator= (uuid32_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

uint32_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

Definition at line 178 of file uuid.hpp.

Constructor & Destructor Documentation

◆ uuid32_t() [1/5]

jau::uuid32_t::uuid32_t ( uint32_t const  v)
inlinenoexcept

Definition at line 182 of file uuid.hpp.

◆ uuid32_t() [2/5]

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

Definition at line 238 of file uuid.cpp.

◆ uuid32_t() [3/5]

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

Definition at line 187 of file uuid.hpp.

◆ uuid32_t() [4/5]

jau::uuid32_t::uuid32_t ( const uuid32_t o)
defaultnoexcept

◆ uuid32_t() [5/5]

jau::uuid32_t::uuid32_t ( uuid32_t &&  o)
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ data()

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

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

Implements jau::uuid_t.

Definition at line 195 of file uuid.hpp.

Here is the caller graph for this function:

◆ toString()

std::string uuid32_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 154 of file uuid.cpp.

Here is the caller graph for this function:

◆ toUUID128String()

std::string uuid32_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 167 of file uuid.cpp.

◆ put()

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

Implements jau::uuid_t.

Definition at line 199 of file uuid.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ value

uint32_t jau::uuid32_t::value

Definition at line 180 of file uuid.hpp.


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