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>
35 #include <sys/types.h>
44 namespace nidas {
namespace util {
49 class BluetoothAddress {
56 static BluetoothAddress getByName(
const std::string& addrstr)
57 throw(UnknownHostException);
63 static std::string getHostName(
const BluetoothAddress& addr)
throw();
73 BluetoothAddress(
const bdaddr_t*);
78 std::string getHostName()
const;
83 const bdaddr_t* getBdAddrPtr()
const {
return &_bdaddr; }
88 const bdaddr_t getBdAddr()
const {
return _bdaddr; }
93 bool operator < (
const BluetoothAddress& x)
const;
103 bool operator != (
const BluetoothAddress& x)
const;
107 static ::regex_t* _addrPreg;
111 static std::map<std::string,BluetoothAddress> _addrMap;
bool operator!=(const BitArray &x, const BitArray &y)
Definition: BitArray.cc:197
bool operator==(const BitArray &x, const BitArray &y)
Definition: BitArray.cc:176
A C++ wrapper for a POSIX mutex.
Definition: ThreadSupport.h:154