40 lines
712 B
C++
40 lines
712 B
C++
|
|
#ifndef LIVOXPROTO1_CORE_H
|
||
|
|
#define LIVOXPROTO1_CORE_H
|
||
|
|
|
||
|
|
#include <vector>
|
||
|
|
#include <string>
|
||
|
|
#include <memory>
|
||
|
|
#include "livoxProto1Protocol.h"
|
||
|
|
|
||
|
|
namespace livoxProto1 {
|
||
|
|
|
||
|
|
class Device
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
Device(const comms::DiscoveredDevice &discoveredDevice);
|
||
|
|
~Device() = default;
|
||
|
|
|
||
|
|
public:
|
||
|
|
comms::DiscoveredDevice discoveredDevice;
|
||
|
|
};
|
||
|
|
|
||
|
|
class DeviceManager
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
DeviceManager();
|
||
|
|
~DeviceManager() = default;
|
||
|
|
|
||
|
|
static void deviceGoneAwayInd(const comms::DiscoveredDevice &device);
|
||
|
|
|
||
|
|
public:
|
||
|
|
std::vector<Device> devices;
|
||
|
|
comms::BroadcastListener broadcastListener;
|
||
|
|
};
|
||
|
|
|
||
|
|
void main(const std::shared_ptr<smo::ComponentThread> &componentThread);
|
||
|
|
void exit(void);
|
||
|
|
|
||
|
|
} // namespace livoxProto1
|
||
|
|
|
||
|
|
#endif // LIVOXPROTO1_CORE_H
|