iDRS™ SDK 16
Loading...
Searching...
No Matches
CIDRSSetup Class Reference

The CIDRSSetup class manages the iDRS SDK licensing information. More...

#include <idrs_common.h>

Detailed Description

The CIDRSSetup class manages the iDRS SDK licensing information.

The class is responsible with the following tasks:

  • license management - handles licenses verification and in-memory storage
  • setup/unload modules - loads and unloads the modules based on the supplied licenses

The class exposes static functions for license management and it stores all the licenses in internal structures. For each module type there is only one license available. During module setup, the following steps are performed in order:

  • license verification
  • module loading
  • extension loading

If any of the above steps fails, an CIDRSException will be thrown and the process will stop.
Each license object can be updated after it is setup. With every update, all the steps described above will be executed.

The following code snippet shows how to create a license, enable an extension for it and setup it in iDRS SDK:

IDRS::CIDRSLicense aLicense(Module::Prepro, IDRS_LICENSE_SOFTWARE, "unlock key");
aLicense.EnableExtension(IDRS_PREPRO_EXTENSION_ADVANCED_PREPRO, "adv prepro unlock key");
IDRS::CIDRSSetup::SetupModule(aLicense);
@ Prepro
The image preprocessing module.
Definition CIDRSLicense_interface.h:59
See also
CIDRSLicense
Module