Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Types | Public Member Functions | Public Attributes | List of all members
direct_bt::BTDeviceRegistry::DeviceQuery Struct Reference

Specifies devices queries to act upon. More...

#include <BTDeviceRegistry.hpp>

Collaboration diagram for direct_bt::BTDeviceRegistry::DeviceQuery:

Public Types

enum  Type : int { Type::EUI48SUB, Type::NAME }
 DeviceQuery type, i.e. More...
 

Public Member Functions

 DeviceQuery (const EUI48Sub &as)
 
 DeviceQuery (const std::string &ns)
 
bool isEUI48Sub () const noexcept
 
std::string toString () const
 

Public Attributes

Type type
 
EUI48Sub addressSub
 
std::string nameSub
 

Detailed Description

Specifies devices queries to act upon.

Definition at line 44 of file BTDeviceRegistry.hpp.

Member Enumeration Documentation

◆ Type

DeviceQuery type, i.e.

EUI48Sub or a std::string name.

Enumerator
EUI48SUB 

DeviceQuery type, using a sensor device EUI48Sub.

NAME 

DeviceQuery type, using a sensor device std::string name.

Definition at line 48 of file BTDeviceRegistry.hpp.

Constructor & Destructor Documentation

◆ DeviceQuery() [1/2]

direct_bt::BTDeviceRegistry::DeviceQuery::DeviceQuery ( const EUI48Sub as)
inline

Definition at line 59 of file BTDeviceRegistry.hpp.

◆ DeviceQuery() [2/2]

direct_bt::BTDeviceRegistry::DeviceQuery::DeviceQuery ( const std::string &  ns)
inline

Definition at line 61 of file BTDeviceRegistry.hpp.

Member Function Documentation

◆ isEUI48Sub()

bool direct_bt::BTDeviceRegistry::DeviceQuery::isEUI48Sub ( ) const
inlinenoexcept

Definition at line 63 of file BTDeviceRegistry.hpp.

Here is the caller graph for this function:

◆ toString()

std::string direct_bt::BTDeviceRegistry::DeviceQuery::toString ( ) const
inline

Definition at line 65 of file BTDeviceRegistry.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ addressSub

EUI48Sub direct_bt::BTDeviceRegistry::DeviceQuery::addressSub

Definition at line 56 of file BTDeviceRegistry.hpp.

◆ nameSub

std::string direct_bt::BTDeviceRegistry::DeviceQuery::nameSub

Definition at line 57 of file BTDeviceRegistry.hpp.

◆ type

Type direct_bt::BTDeviceRegistry::DeviceQuery::type

Definition at line 55 of file BTDeviceRegistry.hpp.


The documentation for this struct was generated from the following file: