56 std::string extract(
const uint8_t *p,
size_t len)
58 std::ostringstream out;
60 while (*p != 0 && len > 0)
62 out << static_cast<char>(*p);
74 iface_name(std::move(iface_name))
89 major=(
static_cast<int>(raw[0])<<8)|raw[1];
90 minor=(
static_cast<int>(raw[2])<<8)|raw[3];
96 for (
int i=0; i<6; i++)
mac=(
mac<<8)|raw[10+i];
102 for (
int i=0; i<4; i++)
ip=(
ip<<8)|raw[36+i];
118 if (len >= 136)
model_name=extract(raw+104, 32);
122 if (len >= 248)
user_name=extract(raw+232, 16);
std::string manufacturer_info
std::string manufacturer_name
void clear()
Clears all information.
std::string device_version
DeviceInfo(std::string iface_name)
std::string serial_number
void set(const uint8_t *raw, size_t len)
Extracts the RAW GigE Vision information according to the given DISCOVERY_ACK package.