LicenseSpring C++ SDK
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 {
12 {
13 public:
17  static ConsumptionPeriod fromString(const std::string &str);
18 
21 
25 
26  operator LSConsumptionPeriod() const;
27 
30  std::string toString() const;
31 
34  std::string toFormattedString() const;
35 
36 private:
37  LSConsumptionPeriod m_period;
38 };
39 } // namespace LicenseSpring
LSConsumptionPeriod
Consumption period.
Definition: PODTypes.h:35
Class used for encapsulating LSConsumptionPeriod and converting cosumption period to/from string...
#define LS_API
Definition: APIDef.h:23