This commit is contained in:
Timur A. Fatkhullin
2024-10-30 23:02:32 +03:00
parent 9cde583688
commit ff42a30717
3 changed files with 19 additions and 9 deletions

View File

@@ -108,9 +108,10 @@ namespace adc
class AdcDeviceNetServer : public AdcGenericNetServer
{
protected:
public:
typedef std::vector<char> serialized_t;
protected:
class DeviceWrapper
{
public:
@@ -134,8 +135,8 @@ protected:
DeviceWrapper() : _id()
{
// null device
std::string_view is{"NULL-DEVICE"};
std::ranges::copy(_id, std::back_inserter(_id));
std::string_view id{"NULL-DEVICE"};
std::ranges::copy(id, std::back_inserter(_id));
};
template <interfaces::adc_device_c DeviceT,
@@ -375,7 +376,7 @@ public:
virtual ~AdcDeviceNetServer() = default;
template <interfaces::adc_device_c DeviceT,
typename IdSerialT = traits::adc_char_identity<typename DeviceT::ident_t>,
typename IdSerialT = traits::adc_char_identity<serialized_t>,
typename AttrIdDeserialT = traits::adc_char_identity<typename DeviceT::attr_ident_t>,
typename CmdIdDeserialT = traits::adc_char_identity<typename DeviceT::cmd_ident_t>>
AdcDeviceNetServer& addDevice(DeviceT* dev_ptr,