5#ifndef PICOSCENES_PLATFORM_LICENSESERVICE_HXX
6#define PICOSCENES_PLATFORM_LICENSESERVICE_HXX
21 [[nodiscard]]
virtual bool hasFeature(
const std::string& featureName)
const = 0;
25 virtual bool testFeatureValue(
const std::string& featureName, std::optional<double> numericValue) = 0;
27 virtual bool testFeatureValue(
const std::string& featureName, std::optional<std::string> stringValue) = 0;
29 virtual bool testFeatureValue(
const std::string& featureName, std::optional<double> numericValue, std::optional<std::string> stringValue) = 0;
31 virtual void checkFeature(
const std::string& featureName, std::optional<double> numericValue) = 0;
33 virtual void checkFeature(
const std::string& featureName, std::optional<std::string> stringValue) = 0;
35 virtual void checkFeature(
const std::string& featureName, std::optional<double> numericValue, std::optional<std::string> stringValue) = 0;
virtual std::string getLicenseName() const =0
virtual void checkFeature(const std::string &featureName, std::optional< double > numericValue, std::optional< std::string > stringValue)=0
virtual void checkFeature(const std::string &featureName, std::optional< double > numericValue)=0
~LicenseService()=default
virtual std::string printHumanReadableLicense() const =0
virtual bool testFeatureValue(const std::string &featureName, std::optional< double > numericValue, std::optional< std::string > stringValue)=0
virtual bool testFeatureValue(const std::string &featureName, std::optional< std::string > stringValue)=0
virtual bool isServiceActivated() const =0
virtual bool testFeatureValue(const std::string &featureName, std::optional< double > numericValue)=0
virtual bool hasFeature(const std::string &featureName) const =0
static std::shared_ptr< LicenseService > getInstance()
virtual void checkFeature(const std::string &featureName, std::optional< std::string > stringValue)=0
virtual const Feature & getFeature(const std::string &featureName)=0