blob: 452a9a5d2d9b4aef7901d5d60682efe3b4b71581 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include<cstdint>
#include<string>
#include "BluetoothObject.hpp"
class tinyb::BluetoothUUID {
private:
uint64_t uuid[2];
public:
BluetoothUUID(const BluetoothUUID &other);
BluetoothUUID(const std::string &uuid);
BluetoothUUID(const char uuid[]);
bool operator==(const BluetoothUUID &other);
bool operator==(const std::string &str);
bool operator==(const char str[]);
BluetoothUUID operator=(const BluetoothUUID &other);
BluetoothUUID operator=(const std::string &other);
BluetoothUUID operator=(const char str[]);
std::string get_string();
std::string get_short_string();
uint32_t get_short();
bool is_short();
};
|