#include <deviceinfo.h>
Definition at line 46 of file deviceinfo.h.
rcdiscover::DeviceInfo::DeviceInfo |
( |
std::string |
iface_name | ) |
|
|
explicit |
void rcdiscover::DeviceInfo::clear |
( |
| ) |
|
const std::string& rcdiscover::DeviceInfo::getDeviceVersion |
( |
| ) |
const |
|
inline |
Returns the device version.
- Returns
- Device version.
Definition at line 144 of file deviceinfo.h.
uint32_t rcdiscover::DeviceInfo::getGateway |
( |
| ) |
const |
|
inline |
Returns the current IP address of the devices gateway.
- Returns
- 4 bytes with an IPv4 address.
Definition at line 120 of file deviceinfo.h.
const std::string& rcdiscover::DeviceInfo::getIfaceName |
( |
| ) |
const |
|
inline |
Returns the name of the interface on which this device was found.
Definition at line 180 of file deviceinfo.h.
uint32_t rcdiscover::DeviceInfo::getIP |
( |
| ) |
const |
|
inline |
Returns the current IP address of the device.
- Returns
- 4 bytes with an IPv4 address.
Definition at line 104 of file deviceinfo.h.
uint64_t rcdiscover::DeviceInfo::getMAC |
( |
| ) |
const |
|
inline |
Returns 6 bytes with the MAC address of the device.
- Returns
- Pointer to 6 bytes with the MAC address.
Definition at line 96 of file deviceinfo.h.
int rcdiscover::DeviceInfo::getMajorVersion |
( |
| ) |
const |
|
inline |
Return major version of device.
- Returns
- Major version.
Definition at line 80 of file deviceinfo.h.
const std::string& rcdiscover::DeviceInfo::getManufacturerInfo |
( |
| ) |
const |
|
inline |
Returns manufacturer specific information.
- Returns
- Manufacturer info.
Definition at line 152 of file deviceinfo.h.
const std::string& rcdiscover::DeviceInfo::getManufacturerName |
( |
| ) |
const |
|
inline |
Returns the manufacturer name.
- Returns
- Manufacturer name.
Definition at line 128 of file deviceinfo.h.
int rcdiscover::DeviceInfo::getMinorVersion |
( |
| ) |
const |
|
inline |
Return minor version of device.
- Returns
- Minor version.
Definition at line 88 of file deviceinfo.h.
const std::string& rcdiscover::DeviceInfo::getModelName |
( |
| ) |
const |
|
inline |
Returns the model name.
- Returns
- Model name.
Definition at line 136 of file deviceinfo.h.
const std::string& rcdiscover::DeviceInfo::getSerialNumber |
( |
| ) |
const |
|
inline |
Returns the serial number.
- Returns
- Serial number.
Definition at line 160 of file deviceinfo.h.
uint32_t rcdiscover::DeviceInfo::getSubnetMask |
( |
| ) |
const |
|
inline |
Returns the current subnet mask of the device.
- Returns
- 4 bytes with an IPv4 subnet mask.
Definition at line 112 of file deviceinfo.h.
const std::string& rcdiscover::DeviceInfo::getUserName |
( |
| ) |
const |
|
inline |
Returns the user name.
- Returns
- User name.
Definition at line 168 of file deviceinfo.h.
bool rcdiscover::DeviceInfo::isValid |
( |
| ) |
const |
|
inline |
Checks if the object contains useful information.
Definition at line 72 of file deviceinfo.h.
bool rcdiscover::DeviceInfo::operator< |
( |
const DeviceInfo & |
info | ) |
const |
|
inline |
First compares the MAC address, then the interface name.
Definition at line 174 of file deviceinfo.h.
void rcdiscover::DeviceInfo::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. |
Definition at line 79 of file deviceinfo.cc.
std::string rcdiscover::DeviceInfo::device_version |
|
private |
uint32_t rcdiscover::DeviceInfo::gateway |
|
private |
std::string rcdiscover::DeviceInfo::iface_name |
|
private |
uint32_t rcdiscover::DeviceInfo::ip |
|
private |
uint64_t rcdiscover::DeviceInfo::mac |
|
private |
int rcdiscover::DeviceInfo::major |
|
private |
std::string rcdiscover::DeviceInfo::manufacturer_info |
|
private |
std::string rcdiscover::DeviceInfo::manufacturer_name |
|
private |
int rcdiscover::DeviceInfo::minor |
|
private |
std::string rcdiscover::DeviceInfo::model_name |
|
private |
std::string rcdiscover::DeviceInfo::serial_number |
|
private |
uint32_t rcdiscover::DeviceInfo::subnet |
|
private |
std::string rcdiscover::DeviceInfo::user_name |
|
private |
The documentation for this class was generated from the following files: