![]() |
LicenseSpring C++ SDK 7.31.0
Easily add Software Licensing to your application
|
Simple class that saves license in a variable, implements LicenseStorage
interface.
More...
#include <LicenseSpring/LicenseMemoryStorage.h>
Public Types | |
using | ptr_t = std::shared_ptr< LicenseMemoryStorage > |
![]() | |
using | ptr_t = std::shared_ptr< LicenseStorage > |
Public Member Functions | |
LicenseMemoryStorage ()=default | |
Constructor for LicenseMemoryStorage object. More... | |
void | saveLicense (const std::string &licenseData) |
Saves license data in a variable. More... | |
std::string | loadLicense () |
Load license data from memory (variable). More... | |
void | clear () |
Purge license data. More... | |
![]() | |
virtual void | saveLicense (const std::string &licenseData)=0 |
Save license data somewhere. More... | |
virtual std::string | loadLicense ()=0 |
Load license data. More... | |
virtual void | clear ()=0 |
Removes local license data. More... | |
virtual | ~LicenseStorage () |
Destructor for LicenseStorage object. More... | |
Static Public Member Functions | |
static ptr_t | create () |
Allocates and constructs a LicenseMemoryStorage object and passes args to LicenseMemoryStorage(). More... | |
Simple class that saves license in a variable, implements LicenseStorage
interface.
This class is thread safe.
Definition at line 18 of file LicenseMemoryStorage.h.
using LicenseSpring::LicenseMemoryStorage::ptr_t = std::shared_ptr<LicenseMemoryStorage> |
Definition at line 21 of file LicenseMemoryStorage.h.
|
default |
Constructor for LicenseMemoryStorage object.
|
static |
Allocates and constructs a LicenseMemoryStorage object and passes args to LicenseMemoryStorage().
|
virtual |
Saves license data in a variable.
licenseData | Encrypted license data string |
Implements LicenseSpring::LicenseStorage.
|
virtual |
Load license data from memory (variable).
Implements LicenseSpring::LicenseStorage.
|
virtual |
Purge license data.
Implements LicenseSpring::LicenseStorage.