46 return std::string(m_name);
58 std::string dname = std::string(&m_name[m_start_pos_device_name]);
59 std::size_t old_len = strlen(m_name);
61 std::snprintf(m_name,
sizeof(m_name),
"%s%s", name.c_str(), dname.c_str());
62 m_start_pos_device_name +=
static_cast<std::size_t
>(written_chars) - old_len;
63 return written_chars >
static_cast<int>(MAX_NAME_LENGTH);
69 return std::snprintf(&m_name[m_start_pos_device_name],
70 sizeof(m_name) - m_start_pos_device_name,
72 parentDeviceName.c_str()) >
static_cast<int>(MAX_NAME_LENGTH);
79 constexpr std::uint16_t fw = 16;
82 ss << linePrefix << left << setw(fw) <<
"Name:"
84 ss << linePrefix << left << setw(fw) <<
"VendorID:"
86 ss << linePrefix << left << setw(fw) <<
"ProductCode:"
88 ss << linePrefix << left << setw(fw) <<
"RevisionNumber:"
90 ss << linePrefix << left << setw(fw) <<
"SerialNumber:"
92 ss << linePrefix << left << setw(fw) <<
"SlaveIndex:"
102 std::stringstream ss;
103 constexpr std::uint16_t fw = 16;
106 ss << linePrefix << left << setw(fw) <<
"Name:"
108 ss << linePrefix << left << setw(fw) <<
"SlaveIndex:"