Class DeviceInfo

Class Documentation

class DeviceInfo

Public Functions

explicit DeviceInfo(std::string iface_name)
void set(const uint8_t *raw, size_t len)

Extracts the RAW GigE Vision information according to the given DISCOVERY_ACK package.

Parameters:
  • raw – Pointer to raw message body, excluding header.

  • len – Length of body as specified in the header.

void clear()

Clears all information.

inline bool isValid() const

Checks if the object contains useful information.

inline int getMajorVersion() const

Return major version of device.

Returns:

Major version.

inline int getMinorVersion() const

Return minor version of device.

Returns:

Minor version.

inline uint64_t getMAC() const

Returns 6 bytes with the MAC address of the device.

Returns:

Pointer to 6 bytes with the MAC address.

inline uint32_t getIP() const

Returns the current IP address of the device.

Returns:

4 bytes with an IPv4 address.

inline uint32_t getSubnetMask() const

Returns the current subnet mask of the device.

Returns:

4 bytes with an IPv4 subnet mask.

inline uint32_t getGateway() const

Returns the current IP address of the devices gateway.

Returns:

4 bytes with an IPv4 address.

inline const std::string &getManufacturerName() const

Returns the manufacturer name.

Returns:

Manufacturer name.

inline const std::string &getModelName() const

Returns the model name.

Returns:

Model name.

inline const std::string &getDeviceVersion() const

Returns the device version.

Returns:

Device version.

inline const std::string &getManufacturerInfo() const

Returns manufacturer specific information.

Returns:

Manufacturer info.

inline const std::string &getSerialNumber() const

Returns the serial number.

Returns:

Serial number.

inline const std::string &getUserName() const

Returns the user name.

Returns:

User name.

inline bool operator<(const DeviceInfo &info) const

First compares the MAC address, then the interface name.

inline const std::string &getIfaceName() const

Returns the name of the interface on which this device was found.