12class AbstractStateMachine;
40 LicenseManager() =
delete;
57 LicenseManager(
const LicenseManager&) =
delete;
58 LicenseManager(LicenseManager&&) =
delete;
78 void Validate(std::string_view strFeature,
bool bTryRenew =
true);
87 std::string
GetProperty(std::string_view strFeature, std::string_view strProperty)
const;
108 static void ValidateProductFeature(
const std::string& strProductName,
const std::string& strFeature,
bool bTryRenew =
true);
111 void ValidateCapability(std::string_view strCapability);
113 std::unique_ptr<licme::helpers::AbstractStateMachine> statemachine;
114 std::unique_ptr<states::Context> context;
This class represents the licensee's environment.
Definition configuration.h:37
void ReleaseAll()
deactivates all licensed features
void Renew()
renews the current volume
~LicenseManager()
Destroy the License Manager.
LicenseManager(manager::Configuration configuration)
Construct a new License Manager.
void Validate(std::string_view strFeature, bool bTryRenew=true)
validates a licensed feature
static void ValidateProductFeature(const std::string &strProductName, const std::string &strFeature, bool bTryRenew=true)
tries to validate the given feature for the given product
std::string GetProperty(std::string_view strFeature, std::string_view strProperty) const
returns properties of a feature