Skip to content

builtin/licensing.h

Namespaces

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

Classes

Name
struct cvedia::rt::SingleFeatureInfo
struct cvedia::rt::FeatureInfo
struct cvedia::rt::LicenseLedgerState
struct cvedia::rt::LicenseLedgerInfoForInstance

Types

Name
enum class std::uint8_t LicenseTag
enum class std::uint8_t Intent
enum class std::uint8_t IntentResponse

Functions

Name
std::string toString< LicenseTag, Default >(LicenseTag const t)
expected< LicenseTag > tryFromString< LicenseTag, Default >(std::string const & s)
std::string toString< IntentResponse, Default >(IntentResponse const t)
expected< IntentResponse > tryFromString< IntentResponse, Default >(std::string const & s)
void to_json(nlohmann::json & obj, FeatureInfo const & featureInfo)
void from_json(nlohmann::json const & j, FeatureInfo & featureInfo)
void to_json(nlohmann::json & obj, LicenseLedgerState const & ledgerInfo)
void from_json(nlohmann::json const & j, LicenseLedgerState & ledgerInfo)
void to_json(nlohmann::json & obj, LicenseLedgerInfoForInstance const & ledgerInfo)
void from_json(nlohmann::json const & j, LicenseLedgerInfoForInstance & ledgerInfo)

Types Documentation

enum LicenseTag

Enumerator Value Description
Streams 0
StandardAnalytics 1
ArmedPersonAnalytics 2
FallenPersonAnalytics 3
LicensePlateAnalytics 4
MetadataRecording 5
CustomAnalytics 6
SmokeAndFireDetection 7
BasicAnalytics 8
AttributeExtraction 9
PpeAnalytics 10

enum Intent

Enumerator Value Description
Demand 0
Release

Represents an intent to inform the license enforcement system about the usage of specific license tags, allowing it to track and manage allowances.

enum IntentResponse

Enumerator Value Description
None 0
DemandReduced
DemandGranted
DemandNotGranted
DemandAlreadyGranted
DemandAcknowledgedNotGranted
DemandRetained

Functions Documentation

function toString< LicenseTag, Default >

inline std::string toString< LicenseTag, Default >(
    LicenseTag const t
)

function tryFromString< LicenseTag, Default >

inline expected< LicenseTag > tryFromString< LicenseTag, Default >(
    std::string const & s
)

function toString< IntentResponse, Default >

inline std::string toString< IntentResponse, Default >(
    IntentResponse const t
)

function tryFromString< IntentResponse, Default >

inline expected< IntentResponse > tryFromString< IntentResponse, Default >(
    std::string const & s
)

function to_json

inline void to_json(
    nlohmann::json & obj,
    FeatureInfo const & featureInfo
)

function from_json

inline void from_json(
    nlohmann::json const & j,
    FeatureInfo & featureInfo
)

function to_json

inline void to_json(
    nlohmann::json & obj,
    LicenseLedgerState const & ledgerInfo
)

function from_json

inline void from_json(
    nlohmann::json const & j,
    LicenseLedgerState & ledgerInfo
)

function to_json

inline void to_json(
    nlohmann::json & obj,
    LicenseLedgerInfoForInstance const & ledgerInfo
)

function from_json

inline void from_json(
    nlohmann::json const & j,
    LicenseLedgerInfoForInstance & ledgerInfo
)