27#include <nidas/Config.h>
29#ifdef HAVE_BLUETOOTH_RFCOMM_H
31#ifndef NIDAS_UTIL_BLUETOOTHADDRESS
32#define NIDAS_UTIL_BLUETOOTHADDRESS
34#include <bluetooth/bluetooth.h>
44namespace nidas {
namespace util {
49class BluetoothAddress {
58 static BluetoothAddress getByName(
const std::string& addrstr);
66 static std::string getHostName(
const BluetoothAddress& addr);
76 BluetoothAddress(
const bdaddr_t*);
81 std::string getHostName()
const;
86 const bdaddr_t* getBdAddrPtr()
const {
return &_bdaddr; }
91 const bdaddr_t getBdAddr()
const {
return _bdaddr; }
96 bool operator < (
const BluetoothAddress& x)
const;
101 bool operator == (
const BluetoothAddress& x)
const;
106 bool operator != (
const BluetoothAddress& x)
const;
110 static ::regex_t* _addrPreg;
114 static std::map<std::string,BluetoothAddress> _addrMap;
A C++ wrapper for a POSIX mutex.
Definition ThreadSupport.h:161
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31