7 #ifndef INSTRUMENT_CONTROL_LIB_DEVICEDISCOVERY_HPP
8 #define INSTRUMENT_CONTROL_LIB_DEVICEDISCOVERY_HPP
14 #include "ctlib/SocketDefines.h"
15 #include "ctlib/Logging.hpp"
19 std::vector<uint8_t> m_startIPRange;
20 std::vector<uint8_t> m_stopIPRange;
26 explicit DeviceDiscovery(std::string &interface, PIL::Logging *logging =
nullptr);
29 std::vector<Device *> startDiscovery();
32 static IPRange getAddressRange(std::string &ip, std::string &mask);
33 PIL_ERROR_CODE setInterfaceList();
34 void testIPRange(IPRange& ipRange, std::vector<Device*>* deviceList);
35 static Device * createDeviceFromDeviceString(std::string &deviceStr, std::vector<uint8_t> &ip);
36 static std::vector<uint8_t> splitIpAddr(
const std::string &
string);
38 InterfaceInfoList m_InterfaceList{};
39 std::string m_InterfaceName;
40 PIL::Logging *m_Logging;
Basic device class This class contains all basic method of all devices, like Connect,...
Definition: Device.h:30