libvisiontransfer
10.8.0
|
Aggregates information about a discovered device.
Definition at line 59 of file deviceinfo.h.
#include <visiontransfer/deviceinfo.h>
Public Types | |
enum | DeviceModel { SCENESCAN, SCENESCAN_PRO, SCARLET, RUBY } |
enum | NetworkProtocol { PROTOCOL_TCP, PROTOCOL_UDP } |
Public Member Functions | |
DeviceInfo () | |
Constructs an empty object with default information. More... | |
DeviceInfo (const char *ip, NetworkProtocol protocol, const char *fwVersion, DeviceModel model, bool compatible, const std::string &serialNumber) | |
Constructs an object by initializing all members with data from the given parameters. More... | |
DeviceInfo (const char *ip, NetworkProtocol protocol, const char *fwVersion, DeviceModel model, bool compatible, const std::string &serialNumber, const DeviceStatus &status) | |
Construct DeviceInfo with pre-initialized DeviceStatus field, for received health reports. More... | |
std::string | getIpAddress () const |
Gets the IP address of the device. More... | |
NetworkProtocol | getNetworkProtocol () const |
Gets the network protocol of the device. More... | |
std::string | getFirmwareVersion () const |
Gets the firmware version of the device. More... | |
DeviceModel | getModel () const |
Gets the model identifier of the discovered device. More... | |
DeviceStatus | getStatus () const |
Return the status / health as reported by the device. More... | |
bool | isCompatible () const |
Returns true if the device is compatible with this API version. More... | |
std::string | getSerialNumber () const |
Returns the device serial number. More... | |
std::string | toString () const |
Converts this object to a printable string. More... | |
bool | operator== (const DeviceInfo &other) const |
Comparison operator for comparing two DeviceInfo objects. More... | |
|
inline |
Constructs an empty object with default information.
Definition at line 76 of file deviceinfo.h.
|
inline |
Constructs an object by initializing all members with data from the given parameters.
ip | IP address of the discovered device. |
protocol | Network protocol of the discovered device. |
fwVersion | Firmware version as string. |
model | Model of the discovered device |
compatible | Indicates if the device is compatible with this API version. |
Definition at line 91 of file deviceinfo.h.
|
inline |
Construct DeviceInfo with pre-initialized DeviceStatus field, for received health reports.
Definition at line 100 of file deviceinfo.h.
|
inline |
Gets the firmware version of the device.
A firmware version string typically consists of a major, minor and patch version, like for example "1.2.34". For special firmware releases, however, the firmware string might deviate.
Definition at line 128 of file deviceinfo.h.
|
inline |
Gets the IP address of the device.
Definition at line 110 of file deviceinfo.h.
|
inline |
Gets the model identifier of the discovered device.
Currently supported models are SCENESCAN
, SCENESCAN_PRO
, SCARLET
and RUBY
.
Definition at line 137 of file deviceinfo.h.
|
inline |
Gets the network protocol of the device.
Possible network protocols are PROTOCOL_TCP
or PROTOCOL_UDP
.
Definition at line 118 of file deviceinfo.h.
|
inline |
Returns the device serial number.
Definition at line 153 of file deviceinfo.h.
|
inline |
Return the status / health as reported by the device.
Definition at line 142 of file deviceinfo.h.
|
inline |
Returns true if the device is compatible with this API version.
Definition at line 148 of file deviceinfo.h.
|
inline |
Comparison operator for comparing two DeviceInfo objects.
Definition at line 179 of file deviceinfo.h.
|
inline |
Converts this object to a printable string.
All information is concatenated into a readable string, which can for example be printed to a terminal.
Definition at line 161 of file deviceinfo.h.