Thermal Camera SDK 10.1.1
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
optris::DeviceInfo Class Reference

Holds important information about a device. More...

#include <DeviceInfo.h>

Collaboration diagram for optris::DeviceInfo:
Collaboration graph

Public Member Functions

OTC_SDK_API DeviceInfo () noexcept
 Constructor.
 
OTC_SDK_API void setSerialNumber (unsigned long serialNumber) noexcept
 Sets the serial number of the device.
 
OTC_SDK_API unsigned long getSerialNumber () const noexcept
 Returns the serial number of the device.
 
OTC_SDK_API void setConnectionInterface (const std::string &connectionInterface) noexcept
 Sets the connection interface of the device.
 
OTC_SDK_API const std::string & getConnectionInterface () const noexcept
 Returns the connection interface of the device.
 
OTC_SDK_API void setConnectionInterfaceAddress (const std::string &address) noexcept
 Sets the address of the local connection interface through which the camera is connected.
 
OTC_SDK_API const std::string & getConnectionInterfaceAddress () const noexcept
 Returns the address of the local connection interface through which the camera is connected.
 
OTC_SDK_API void setIpAddress (const IpAddress &ipAddress) noexcept
 Sets the IP address.
 
OTC_SDK_API const IpAddressgetIpAddress () const noexcept
 Returns the IP address.
 
OTC_SDK_API void setTargetIpAddress (const IpAddress &ipAddress) noexcept
 Sets the IP address of the streaming target.
 
OTC_SDK_API const IpAddressgetTargetIpAddress () const noexcept
 Returns the IP address of the streaming target.
 
OTC_SDK_API void setPort (const Port &port) noexcept
 Sets the port.
 
OTC_SDK_API const PortgetPort () const noexcept
 Returns the port.
 
OTC_SDK_API DeviceType getDeviceType () const noexcept
 Return the device type.
 
OTC_SDK_API void setRevisions (unsigned short hardware, unsigned short firmware) noexcept
 Sets the hardware and firmware revisions.
 
OTC_SDK_API unsigned short getHardwareRevision () const noexcept
 Returns the hardware revision.
 
OTC_SDK_API unsigned short getFirmwareRevision () const noexcept
 Returns the firmware revision.
 
OTC_SDK_API void setBusy (bool busy) noexcept
 Sets the device busy state.
 
OTC_SDK_API bool isBusy () const noexcept
 Returns whether the device is busy.
 
OTC_SDK_API void setMacAddress (const MacAddress &mac) noexcept
 Sets the MAC address.
 
OTC_SDK_API const MacAddressgetMacAddress () const noexcept
 Returns the MAC address.
 
OTC_SDK_API DeviceInfo clone () const noexcept
 Returns a complete copy of this informatin.
 
bool operator== (const DeviceInfo &rhs) const noexcept
 Equals operator.
 
bool operator!= (const DeviceInfo &rhs) const noexcept
 Unequals operator.
 
bool operator< (const DeviceInfo &rhs) const noexcept
 Less than operator.
 

Static Public Member Functions

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.
 

Detailed Description

Holds important information about a device.

Instances of this class are provided by the EnumerationManager and can be used to establish an connection through an IRImager implementation.

Member Function Documentation

◆ clone()

DeviceInfo optris::DeviceInfo::clone ( ) const
inlinenoexcept

Returns a complete copy of this informatin.

Returns
a complete copy of this information.

◆ determineDeviceType()

static OTC_SDK_API DeviceType optris::DeviceInfo::determineDeviceType ( unsigned short hardwareRevision,
unsigned short firmwareRevision )
staticnoexcept

Determines the device type based on the provided hardware and firmware revisions.

Returns
determined device type.

◆ getConnectionInterface()

const std::string & optris::DeviceInfo::getConnectionInterface ( ) const
inlinenoexcept

Returns the connection interface of the device.

This can, for example, be USB or Ethernet.

Returns
connection interface of the device.

◆ getConnectionInterfaceAddress()

const std::string & optris::DeviceInfo::getConnectionInterfaceAddress ( ) const
inlinenoexcept

Returns the address of the local connection interface through which the camera is connected.

This refers to the address of the local connection interface, e.g. the usb endpoint or address or IP address of the network interface.

Returns
Address of the connection interface.

◆ getDeviceType()

DeviceType optris::DeviceInfo::getDeviceType ( ) const
inlinenoexcept

Return the device type.

Returns
device type.

◆ getFirmwareRevision()

unsigned short optris::DeviceInfo::getFirmwareRevision ( ) const
inlinenoexcept

Returns the firmware revision.

Returns
firmware revision.

◆ getHardwareRevision()

unsigned short optris::DeviceInfo::getHardwareRevision ( ) const
inlinenoexcept

Returns the hardware revision.

Returns
hardware revision.

◆ getIpAddress()

const IpAddress & optris::DeviceInfo::getIpAddress ( ) const
inlinenoexcept

Returns the IP address.

For Ethernet connections this refers to the IP address of the device.

Returns
IP address.

◆ getMacAddress()

const MacAddress & optris::DeviceInfo::getMacAddress ( ) const
inlinenoexcept

Returns the MAC address.

Returns
MAC address.

◆ getPort()

const Port & optris::DeviceInfo::getPort ( ) const
inlinenoexcept

Returns the port.

For Ethernet connections this refers to the port the device will send its data to.

Returns
port.

◆ getSerialNumber()

unsigned long optris::DeviceInfo::getSerialNumber ( ) const
inlinenoexcept

Returns the serial number of the device.

Returns
serial number of the device.

◆ getTargetIpAddress()

const IpAddress & optris::DeviceInfo::getTargetIpAddress ( ) const
inlinenoexcept

Returns the IP address of the streaming target.

For Ethernet connections this refers to the IP address of the streaming target machine.

Returns
IP address.

◆ isBusy()

bool optris::DeviceInfo::isBusy ( ) const
inlinenoexcept

Returns whether the device is busy.

A device is busy when it is already used by the SDK or the PixConnect.

Returns
true if device is busy. False otherwise.

◆ setBusy()

void optris::DeviceInfo::setBusy ( bool busy)
inlinenoexcept

Sets the device busy state.

Parameters
[in]busytrue if device is busy. False otherwise.

◆ setConnectionInterface()

OTC_SDK_API void optris::DeviceInfo::setConnectionInterface ( const std::string & connectionInterface)
noexcept

Sets the connection interface of the device.

This can, for example, be USB or Ethernet.

Parameters
[in]connectionInterfaceto set.

◆ setConnectionInterfaceAddress()

void optris::DeviceInfo::setConnectionInterfaceAddress ( const std::string & address)
inlinenoexcept

Sets the address of the local connection interface through which the camera is connected.

This refers to the address of the local connection interface, e.g. the usb endpoint or address or IP address of the network interface.

Parameters
[in]addressto set.

◆ setIpAddress()

void optris::DeviceInfo::setIpAddress ( const IpAddress & ipAddress)
inlinenoexcept

Sets the IP address.

For Ethernet connections this refers to the IP address of the device.

Parameters
[in]ipAddressaddress to set.

◆ setMacAddress()

void optris::DeviceInfo::setMacAddress ( const MacAddress & mac)
inlinenoexcept

Sets the MAC address.

Parameters
[in]macconnection state.

◆ setPort()

void optris::DeviceInfo::setPort ( const Port & port)
inlinenoexcept

Sets the port.

For Ethernet connections this refers to the port the device will send its data to.

Parameters
[in]portto set.

◆ setRevisions()

OTC_SDK_API void optris::DeviceInfo::setRevisions ( unsigned short hardware,
unsigned short firmware )
noexcept

Sets the hardware and firmware revisions.

Parameters
[in]hardwarerevision to set.
[in]firmwarerevision to set.

◆ setSerialNumber()

void optris::DeviceInfo::setSerialNumber ( unsigned long serialNumber)
inlinenoexcept

Sets the serial number of the device.

Parameters
[in]serialNumberto set.

◆ setTargetIpAddress()

void optris::DeviceInfo::setTargetIpAddress ( const IpAddress & ipAddress)
inlinenoexcept

Sets the IP address of the streaming target.

For Ethernet connections this refers to the IP address of the streaming target machine.

Parameters
[in]ipAddressaddress to set.

The documentation for this class was generated from the following file: