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

LicenseStorage.h
Go to the documentation of this file.
1 #ifndef LS_LICENSE_STORAGE_H
2 #define LS_LICENSE_STORAGE_H
3
4 #ifdef _MSC_VER
5 #pragma once
6 #pragma warning( push )
7 #pragma warning( disable : 4251 )
8 #endif
9
10 #include "APIDef.h"
11
12 namespace LicenseSpring
13 {
16 class LS_API LicenseStorage
17 {
18 public:
19 using ptr_t = std::shared_ptr<LicenseStorage>;
20
24 virtual void saveLicense( const std::string& licenseData ) = 0;
25
30 virtual std::string loadLicense() = 0;
31
33 virtual void clear() = 0;
34
36 virtual ~LicenseStorage();
37 };
38 }
39
40 #ifdef _MSC_VER
41 #pragma warning( pop )
42 #endif
43
44 #endif // LS_LICENSE_STORAGE_H
LicenseSpring
Definition: BaseManager.h:15
LicenseSpring::LicenseStorage::ptr_t
std::shared_ptr< LicenseStorage > ptr_t
Definition: LicenseStorage.h:19
APIDef.h
LicenseSpring::LicenseStorage
LicenseStorage interface.
Definition: LicenseStorage.h:16
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