| LicenseSpring C++ SDK 7.27.0 Easily add Software Licensing to your application

ConsumptionPeriod.h
Go to the documentation of this file.
1 #pragma once
2
3 #include <string>
4 #include "APIDef.h"
5 #include "PODTypes.h"
6
7 namespace LicenseSpring
8 {
10 class LS_API ConsumptionPeriod
11 {
12 public:
16 static ConsumptionPeriod fromString( const std::string& str );
17
19 ConsumptionPeriod();
20
23 ConsumptionPeriod( LSConsumptionPeriod period );
24
25 operator LSConsumptionPeriod() const;
26
29 std::string toString() const;
30
33 std::string toFormattedString() const;
34
35 private:
36 LSConsumptionPeriod m_period;
37 };
38 }
LSConsumptionPeriod
LSConsumptionPeriod
Consumption period.
Definition: PODTypes.h:37
LicenseSpring
Definition: BaseManager.h:15
APIDef.h
LicenseSpring::ConsumptionPeriod
Class used for encapsulating LSConsumptionPeriod and converting cosumption period to/from string...
Definition: ConsumptionPeriod.h:10
LS_API
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Definition: APIDef.h:22
PODTypes.h