Update Naming and Tests

This commit is contained in:
2021-07-28 16:23:27 +02:00
parent f03e90f5b9
commit 03b00fa6de
17 changed files with 566 additions and 104 deletions
+38
View File
@@ -0,0 +1,38 @@
#ifndef DEVICE_DEVICE_H
#define DEVICE_DEVICE_H
#include <mutex>
#include <string>
namespace PresenceDetection {
namespace Device {
class Device
{
public:
Device(int id, const std::string& wifiMacAddress, const std::string& bluetoothAddress);
~Device();
Device(const Device& other);
int ID() const;
std::string WifiMacAddress() const;
std::string BluetoothMacAddress() const;
bool Online() const;
void Online(bool online);
private:
int m_id;
std::string m_wifiMacAddress;
std::string m_bluetoothMacAddress;
mutable std::mutex m_mutex;
bool m_online;
};
} // namespace Device
} // namespace PresenceDetection
#endif // DEVICE_DEVICE_H