1 #ifndef LS_LICENSE_FEATURE_H 2 #define LS_LICENSE_FEATURE_H 6 #pragma warning( push ) 7 #pragma warning( disable : 4251 ) 47 int32_t maxConsumption, int32_t totalConsumption, int32_t localConsumption,
48 const tm& expiryDate,
bool allowOverages, int32_t maxOverages,
49 bool resetConsumption,
bool allowUnlimitedConsumptions,
ConsumptionPeriod consumptionPeriod,
const std::string& metadata );
53 const std::string& code()
const;
57 const std::string& name()
const;
66 int32_t maxConsumption()
const;
71 int32_t totalConsumption()
const;
77 int32_t localConsumption()
const;
81 int32_t maxOverages()
const;
85 bool isOveragesAllowed()
const;
93 bool isResetConsumptionEnabled()
const;
97 bool isUnlimitedConsumptionAllowed()
const;
103 tm expiryDate()
const;
108 tm expiryDateUtc()
const;
112 const std::string& metadata()
const;
116 bool isExpired()
const;
124 static LSFeatureType FeatureTypeFromString(
const std::string& value );
131 static std::string FeatureTypeToString(
LSFeatureType value );
136 std::string toString()
const;
142 int32_t m_maxConsumption;
143 int32_t m_totalConsumption;
144 int32_t m_localConsumption;
145 int32_t m_maxOverages;
146 bool m_allowOverages;
147 bool m_allowUnlimitedConsumptions;
148 bool m_resetConsumption;
151 std::string m_metadata;
156 #pragma warning( pop ) 159 #endif // LS_LICENSE_FEATURE_H
Class used for encapsulating LSConsumptionPeriod and converting cosumption period to/from string...
Class that encapsulates information about license feature.
LSFeatureType
Product feature type.
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...