Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Namespaces | Functions | Variables
BTDeviceRegistry.cpp File Reference
#include "BTDeviceRegistry.hpp"
#include <jau/cpp_lang_util.hpp>
#include <jau/basic_algos.hpp>
#include <jau/darray.hpp>
#include <unordered_set>
#include <unordered_map>
Include dependency graph for BTDeviceRegistry.cpp:

Go to the source code of this file.

Namespaces

namespace  direct_bt
 
namespace  direct_bt::BTDeviceRegistry
 Application toolkit providing BT device registration of processed and awaited devices.
 

Functions

void direct_bt::BTDeviceRegistry::addToProcessedDevices (const BDAddressAndType &a, const std::string &n) noexcept
 
void direct_bt::BTDeviceRegistry::addToWaitForDevices (const std::string &addrOrNameSub) noexcept
 
bool direct_bt::BTDeviceRegistry::areAllDevicesProcessed (DeviceQueryMatchFunc m) noexcept
 Returns true if all addToWaitForDevices() awaited devices have been addToProcessedDevices() processed. More...
 
void direct_bt::BTDeviceRegistry::clearProcessedDevices () noexcept
 Clears internal list. More...
 
void direct_bt::BTDeviceRegistry::clearWaitForDevices () noexcept
 Clears internal list. More...
 
size_t direct_bt::BTDeviceRegistry::getProcessedDeviceCount () noexcept
 
jau::darray< DeviceID > direct_bt::BTDeviceRegistry::getProcessedDevices () noexcept
 Returns a copy of the current collection of processed DeviceID. More...
 
std::string direct_bt::BTDeviceRegistry::getProcessedDevicesString () noexcept
 
jau::darray< DeviceQuery > & direct_bt::BTDeviceRegistry::getWaitForDevices () noexcept
 Returns the reference of the current list of DeviceQuery, not a copy. More...
 
size_t direct_bt::BTDeviceRegistry::getWaitForDevicesCount () noexcept
 
std::string direct_bt::BTDeviceRegistry::getWaitForDevicesString () noexcept
 
bool direct_bt::BTDeviceRegistry::isDeviceProcessed (const BDAddressAndType &a) noexcept
 
bool direct_bt::BTDeviceRegistry::isWaitingForAnyDevice () noexcept
 
bool direct_bt::BTDeviceRegistry::isWaitingForDevice (const EUI48 &address, const std::string &name, DeviceQueryMatchFunc m) noexcept
 Returns true if the given address and/or name matches any of the BTDeviceRegistry::addToWaitForDevices() awaited devices. More...
 

Variables

static std::unordered_set< DeviceID > direct_bt::BTDeviceRegistry::devicesProcessed
 
static std::recursive_mutex direct_bt::BTDeviceRegistry::mtx_devicesProcessed
 
static jau::darray< DeviceQuery > direct_bt::BTDeviceRegistry::waitForDevices