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

Loading...
Searching...
No Matches
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
APIDef.h
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
LicenseSpring::LicenseStorage
LicenseStorage interface.
Definition LicenseStorage.h:17
LicenseSpring::LicenseStorage::loadLicense
virtual std::string loadLicense()=0
Load license data.
LicenseSpring::LicenseStorage::~LicenseStorage
virtual ~LicenseStorage()
Destructor for LicenseStorage object.
LicenseSpring::LicenseStorage::clear
virtual void clear()=0
Removes local license data.
LicenseSpring::LicenseStorage::saveLicense
virtual void saveLicense(const std::string &licenseData)=0
Save license data somewhere.
LicenseSpring::LicenseStorage::ptr_t
std::shared_ptr< LicenseStorage > ptr_t
Definition LicenseStorage.h:19
LicenseSpring
Definition BaseManager.h:16