LicenseInfo

primo::license::LicenseInfo

class LicenseInfo : public primo::Reference

Provides information about the current license state of the library.

A LicenseInfo object is obtained by calling Library::createLicenseInfo() The created object must be released when it is not needed anymore.

See also

Library::createLicenseInfo

Public Functions

virtual int32_t licenseStatus() = 0

Gets the current license status.

Remark

Demo builds cannot be licensed. For demo builds, this method always returns LicenseStatusFlags::DemoBuild.

See also

LicenseStatusFlags

Returns:

A combination of flags defined in LicenseStatusFlags::Enum.

virtual bool_t isLicensed(const char *product, const char *feature) = 0

Checks whether a product feature is licensed.

If a product is licensed for a limited set of features then the function will return TRUE for that product only if the feature parameter specifies one of the licensed features or is NULL.

Remark

If a product is fully licensed then the function will always return TRUE for that product regardless of the feature parameter.

Parameters:
  • product – The product Id. If NULL the default library product is implied.

  • feature – The feature Id. If NULL the default product feature is implied.

Returns:

TRUE if the specified product feature is licensed, FALSE otherwise.