Hide menu
Loading...
Searching...
No Matches
cadex::mtk::LicenseStatistics Class Reference

Provides information about the active MTK license and current usage state. More...

Public Types

enum class  DetailLevel { Standard = 0 , Verbose }
 
using ImplType = internal::LicenseStatisticsImpl
 

Public Member Functions

std::string DevUUID () const
 Returns the UUID of the development license.
 
std::string RuntimeLicensePath () const
 Returns the path to the runtime license file.
 
cadex::mtk::LicenseType LicenseType () const
 Returns the current licensing model.
 
std::string TierName () const
 Returns the current license tier name.
 
int TierLimit () const
 Returns the usage limit for the current license tier.
 
int AvailableBalance () const
 Returns the remaining usage balance for the current billing period.
 
std::string LastConnectionLog (DetailLevel theDetailLevel=DetailLevel::Standard) const
 Returns the log of the last connection to the licensing service.
 
std::chrono::system_clock::time_point BillingPeriodStartDate () const
 Returns the start date of the current billing period.
 
std::chrono::system_clock::time_point BillingPeriodEndDate () const
 Returns the end date of the current billing period.
 
ImplType * Impl () const
 

Static Public Member Functions

static LicenseStatisticsInstance ()
 Returns the shared license statistics instance.
 

Detailed Description

Provides information about the active MTK license and current usage state.

The class can be used to retrieve license details such as the development license UUID, runtime license path, licensing model, tier name, usage limit, available balance, billing period dates, and the last connection log.

Member Function Documentation

◆ AvailableBalance()

int cadex::mtk::LicenseStatistics::AvailableBalance ( ) const

Returns the remaining usage balance for the current billing period.

◆ BillingPeriodEndDate()

std::chrono::system_clock::time_point cadex::mtk::LicenseStatistics::BillingPeriodEndDate ( ) const

Returns the end date of the current billing period.

◆ BillingPeriodStartDate()

std::chrono::system_clock::time_point cadex::mtk::LicenseStatistics::BillingPeriodStartDate ( ) const

Returns the start date of the current billing period.

◆ DevUUID()

std::string cadex::mtk::LicenseStatistics::DevUUID ( ) const

Returns the UUID of the development license.

◆ Instance()

LicenseStatistics & cadex::mtk::LicenseStatistics::Instance ( )
static

Returns the shared license statistics instance.

◆ LastConnectionLog()

std::string cadex::mtk::LicenseStatistics::LastConnectionLog ( DetailLevel theDetailLevel = DetailLevel::Standard) const

Returns the log of the last connection to the licensing service.

◆ LicenseType()

LicenseType cadex::mtk::LicenseStatistics::LicenseType ( ) const

Returns the current licensing model.

◆ RuntimeLicensePath()

std::string cadex::mtk::LicenseStatistics::RuntimeLicensePath ( ) const

Returns the path to the runtime license file.

◆ TierLimit()

int cadex::mtk::LicenseStatistics::TierLimit ( ) const

Returns the usage limit for the current license tier.

◆ TierName()

std::string cadex::mtk::LicenseStatistics::TierName ( ) const

Returns the current license tier name.