OptrisOptrisDocumentation

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

optris::sdk::ConfigLoadOptions

How to treat a configuration file that does not match this camera.

Defaults reproduce what the SDK did before this struct existed, so an existing call means exactly what it always meant.

Public attributes

require_matching_serial

bool require_matching_serial = false

Refuse a file whose serial is not this camera's.

Off by default, because a configuration is routinely written on one camera and rolled out to a line of identical ones, and that is a legitimate thing to do.

Switch it on when the file is a backup of this camera rather than a template. The mismatch that prompted this option applied a PI 640's setup to an Xi 80 and got as far as writing the emissivity before the temperature range threw; with this set, nothing would have moved and the report would name both serials.

A file with no serial at all -- one written by hand, or by a tool -- is never refused by this: there is nothing to disagree with. ConfigLoadReport::file_serial is empty in that case.