OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — legacy C++ API referencev12.0

These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.

optris::ConnectionEvent

Represents a connection event.

Public attributes

state

ConnectionState state

Current connection state.

msg

std::string msg

Message.

accessInternet

bool accessInternet = true

Indicates whether the SDK has permission to access the internet. This field has to be set by the client in response to a ConnectionState::CaliAccessInternet state to allow the SDK to access the internet to download missing calibration files.

sourceDirectory

std::string sourceDirectory

Specifies the source directory for calibration files. This field has to be set by the client in response to a ConnectionState::CaliCopySourceDirectory state to specify another source directory from which the SDK should attempt to copy missing calibration files. Leave empty if no other source directory should be probed.