LicenseSpring C++ SDK
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{
18{
19public:
20 using ptr_t = std::shared_ptr<LicenseStorage>;
21
26 virtual void saveLicense(const std::string &licenseData) = 0;
27
33 virtual std::string loadLicense() = 0;
34
36 virtual void clear() = 0;
37
39 virtual ~LicenseStorage();
40};
41} // namespace LicenseSpring
42
43#ifdef _MSC_VER
44#pragma warning(pop)
45#endif
46
47#endif // LS_LICENSE_STORAGE_H
#define LS_API
Definition: APIDef.h:23
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