TLicenseInfo¶
primo::avblocks::modern::TLicenseInfo
-
class TLicenseInfo¶
Fluent wrapper for
primo::license::LicenseInfo, which describes the license state of the library.Owns the raw object through a
primo::ref. Not copyable, movable.Unnamed Group
-
TLicenseInfo(TLicenseInfo&&) = default¶
-
TLicenseInfo &operator=(TLicenseInfo&&) = default¶
Move construction/assignment transfers ownership of the underlying object. The moved-from object no longer wraps anything.
Public Functions
-
inline TLicenseInfo()¶
Creates a license info object for the library (
Library::createLicenseInfo).
-
inline explicit TLicenseInfo(primo::ref<primo::license::LicenseInfo> info)¶
Takes ownership of an existing
LicenseInforeference.
-
TLicenseInfo(const TLicenseInfo&) = delete¶
-
TLicenseInfo &operator=(const TLicenseInfo&) = delete¶
-
inline primo::license::LicenseStatusFlags::Enum licenseStatus() const¶
Returns the current license status as a combination of LicenseStatusFlags::Enum flags.
-
inline bool isLicensed(const char *product = nullptr, const char *feature = nullptr) const¶
Returns true if the specified product/feature is licensed.
Pass nullptr for product/feature to use library defaults.
-
inline primo::license::LicenseInfo *get() const¶
Returns the raw underlying pointer. For interop with the core API only.
-
TLicenseInfo(TLicenseInfo&&) = default¶