LicenseSpring C++ SDK 7.31.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
12namespace LicenseSpring
13{
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
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Definition: APIDef.h:22
LicenseStorage interface.
virtual std::string loadLicense()=0
Load license data.
virtual ~LicenseStorage()
Destructor for LicenseStorage object.
virtual void clear()=0
Removes local license data.
virtual void saveLicense(const std::string &licenseData)=0
Save license data somewhere.
std::shared_ptr< LicenseStorage > ptr_t