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 LicenseStatistics & | Instance () |
| Returns the shared license statistics instance. | |
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.
| int cadex::mtk::LicenseStatistics::AvailableBalance | ( | ) | const |
Returns the remaining usage balance for the current billing period.
| std::chrono::system_clock::time_point cadex::mtk::LicenseStatistics::BillingPeriodEndDate | ( | ) | const |
Returns the end date of the current billing period.
| std::chrono::system_clock::time_point cadex::mtk::LicenseStatistics::BillingPeriodStartDate | ( | ) | const |
Returns the start date of the current billing period.
| std::string cadex::mtk::LicenseStatistics::DevUUID | ( | ) | const |
Returns the UUID of the development license.
|
static |
Returns the shared license statistics instance.
| std::string cadex::mtk::LicenseStatistics::LastConnectionLog | ( | DetailLevel | theDetailLevel = DetailLevel::Standard | ) | const |
Returns the log of the last connection to the licensing service.
| LicenseType cadex::mtk::LicenseStatistics::LicenseType | ( | ) | const |
Returns the current licensing model.
| std::string cadex::mtk::LicenseStatistics::RuntimeLicensePath | ( | ) | const |
Returns the path to the runtime license file.
| int cadex::mtk::LicenseStatistics::TierLimit | ( | ) | const |
Returns the usage limit for the current license tier.
| std::string cadex::mtk::LicenseStatistics::TierName | ( | ) | const |
Returns the current license tier name.