1#ifndef LS_LICENSE_MEMORY_STORAGE_H
2#define LS_LICENSE_MEMORY_STORAGE_H
7#pragma warning( disable : 4251 )
21 using ptr_t = std::shared_ptr<LicenseMemoryStorage>;
42 std::string m_licenseData;
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Simple class that saves license in a variable, implements LicenseStorage interface.
std::shared_ptr< LicenseMemoryStorage > ptr_t
std::string loadLicense()
Load license data from memory (variable).
void saveLicense(const std::string &licenseData)
Saves license data in a variable.
void clear()
Purge license data.
LicenseMemoryStorage()=default
Constructor for LicenseMemoryStorage object.
static ptr_t create()
Allocates and constructs a LicenseMemoryStorage object and passes args to LicenseMemoryStorage().
LicenseStorage interface.