212 bool operator==(const
DeviceInfo& rhs) const noexcept;
214 bool operator!=(const
DeviceInfo& rhs) const noexcept;
216 bool operator<(const
DeviceInfo& rhs) const noexcept;
221 std::
string _connectionInterface;
222 std::
string _connectionInterfaceAddress;
230 unsigned long _serialNumber;
231 unsigned short _hardwareRevision;
232 unsigned short _firmwareRevision;
240 _serialNumber = serialNumber;
245 return _serialNumber;
250 return _connectionInterface;
255 _connectionInterfaceAddress = address;
260 return _connectionInterfaceAddress;
265 _deviceIpAddress = ipAddress;
270 return _deviceIpAddress;
275 _targetIpAddress = ipAddress;
280 return _targetIpAddress;
300 return _hardwareRevision;
305 return _firmwareRevision;
320 _deviceMacAddress = macAddress;
325 return _deviceMacAddress;
330 return (_deviceType == rhs._deviceType &&
331 _connectionInterface == rhs._connectionInterface &&
332 _connectionInterfaceAddress == rhs._connectionInterfaceAddress &&
333 _deviceMacAddress == rhs._deviceMacAddress &&
334 _deviceIpAddress == rhs._deviceIpAddress &&
335 _targetIpAddress == rhs._targetIpAddress &&
336 _targetPort == rhs._targetPort &&
337 _serialNumber == rhs._serialNumber &&
338 _hardwareRevision == rhs._hardwareRevision &&
339 _firmwareRevision == rhs._firmwareRevision &&
350 return std::tie(_serialNumber, _connectionInterface) < std::tie(rhs._serialNumber, rhs._connectionInterface);
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
Contains an enum representing the different types of Optris thermal cameras.
Contains a class holding IP v4 address.
Contains a class representing a MAC address.
Contains a class representing an network port.
OTC_SDK_API void setBusy(bool busy) noexcept
Sets the device busy state.
Definition DeviceInfo.h:308
OTC_SDK_API const IpAddress & getTargetIpAddress() const noexcept
Returns the IP address of the streaming target.
Definition DeviceInfo.h:278
OTC_SDK_API void setPort(const Port &port) noexcept
Sets the port.
Definition DeviceInfo.h:283
bool operator!=(const DeviceInfo &rhs) const noexcept
Unequals operator.
Definition DeviceInfo.h:343
OTC_SDK_API const std::string & getConnectionInterfaceAddress() const noexcept
Returns the address of the local connection interface through which the camera is connected.
Definition DeviceInfo.h:258
OTC_SDK_API void setSerialNumber(unsigned long serialNumber) noexcept
Sets the serial number of the device.
Definition DeviceInfo.h:238
OTC_SDK_API void setIpAddress(const IpAddress &ipAddress) noexcept
Sets the IP address.
Definition DeviceInfo.h:263
OTC_SDK_API void setMacAddress(const MacAddress &mac) noexcept
Sets the MAC address.
Definition DeviceInfo.h:318
OTC_SDK_API void setRevisions(unsigned short hardware, unsigned short firmware) noexcept
Sets the hardware and firmware revisions.
OTC_SDK_API void setTargetIpAddress(const IpAddress &ipAddress) noexcept
Sets the IP address of the streaming target.
Definition DeviceInfo.h:273
OTC_SDK_API const std::string & getConnectionInterface() const noexcept
Returns the connection interface of the device.
Definition DeviceInfo.h:248
OTC_SDK_API const MacAddress & getMacAddress() const noexcept
Returns the MAC address.
Definition DeviceInfo.h:323
OTC_SDK_API const IpAddress & getIpAddress() const noexcept
Returns the IP address.
Definition DeviceInfo.h:268
static OTC_SDK_API DeviceType determineDeviceType(unsigned short hardwareRevision, unsigned short firmwareRevision) noexcept
Determines the device type based on the provided hardware and firmware revisions.
OTC_SDK_API DeviceInfo() noexcept
Constructor.
OTC_SDK_API bool isBusy() const noexcept
Returns whether the device is busy.
Definition DeviceInfo.h:313
bool operator==(const DeviceInfo &rhs) const noexcept
Equals operator.
Definition DeviceInfo.h:328
OTC_SDK_API void setConnectionInterfaceAddress(const std::string &address) noexcept
Sets the address of the local connection interface through which the camera is connected.
Definition DeviceInfo.h:253
OTC_SDK_API unsigned long getSerialNumber() const noexcept
Returns the serial number of the device.
Definition DeviceInfo.h:243
OTC_SDK_API unsigned short getHardwareRevision() const noexcept
Returns the hardware revision.
Definition DeviceInfo.h:298
OTC_SDK_API const Port & getPort() const noexcept
Returns the port.
Definition DeviceInfo.h:288
OTC_SDK_API unsigned short getFirmwareRevision() const noexcept
Returns the firmware revision.
Definition DeviceInfo.h:303
OTC_SDK_API void setConnectionInterface(const std::string &connectionInterface) noexcept
Sets the connection interface of the device.
bool operator<(const DeviceInfo &rhs) const noexcept
Less than operator.
Definition DeviceInfo.h:348
OTC_SDK_API DeviceType getDeviceType() const noexcept
Return the device type.
Definition DeviceInfo.h:293
Encapsulates an IP v4 address.
Definition IpAddress.h:33
Encapsulates a media access control address (MAC address).
Definition MacAddress.h:34
Encapsulates a network port number.
Definition Port.h:34
Main SDK namespace.
Definition AlarmChannel.h:21
DeviceType
Represents the different types of Optris thermal cameras.
Definition DeviceType.h:24