2023-06-29 23:13:55 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
class Device {
|
|
|
|
public:
|
|
|
|
friend std::ostream& operator<<(std::ostream& os, const Device& device);
|
|
|
|
|
|
|
|
public:
|
|
|
|
Device(const std::string& macAddress);
|
|
|
|
static std::shared_ptr<Device> create(const std::string& macAddress);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void parseAndSetMac(const std::string& macAddress);
|
|
|
|
|
2023-06-30 18:47:50 +00:00
|
|
|
public:
|
2023-06-29 23:13:55 +00:00
|
|
|
uint8_t macAddress[6];
|
|
|
|
};
|