Skip to content

builtin/license_enforcer.cpp

Namespaces

Name
cvedia
cvedia::rt
API for controlling the server and lifecycle management of runtime instances.
cvedia::rt::licensing

Functions

Name
expected< void > createSystemEnforcer()
expected< std::weak_ptr< LicenseEnforcer > > getSystemEnforcer()
expected< void > requestDemandForAllFeatures(Uuid const & instanceId)
expected< InstalledLicenseDiscovery > discoverInstalledLicenses()
expected< ModelOutputLicensePreflightResult > preflightModelOutputs(Uuid const & instanceId, pCValue const & modelConfig)

Attributes

Name
shared_mutex_class systemEnforcerMux_
std::shared_ptr< LicenseEnforcer > systemLicenseEnforcer_

Functions Documentation

function createSystemEnforcer

expected< void > createSystemEnforcer()

function getSystemEnforcer

expected< std::weak_ptr< LicenseEnforcer > > getSystemEnforcer()

function requestDemandForAllFeatures

expected< void > requestDemandForAllFeatures(
    Uuid const & instanceId
)

function discoverInstalledLicenses

expected< InstalledLicenseDiscovery > discoverInstalledLicenses()

function preflightModelOutputs

expected< ModelOutputLicensePreflightResult > preflightModelOutputs(
    Uuid const & instanceId,
    pCValue const & modelConfig
)

Attributes Documentation

variable systemEnforcerMux_

static shared_mutex_class systemEnforcerMux_;

variable systemLicenseEnforcer_

static std::shared_ptr< LicenseEnforcer > systemLicenseEnforcer_ = nullptr;