20 #include <agx/config/AGX_LAAS_ENABLE.h> 22 #ifdef STANDALONE_RUNTIME 24 #ifdef AGX_LAAS_ENABLE 25 #undef AGX_LAAS_ENABLE 27 #define AGX_LAAS_ENABLE() 0 48 #ifdef STANDALONE_RUNTIME 49 typedef std::string
String;
69 #ifdef STANDALONE_RUNTIME 84 #ifdef STANDALONE_RUNTIME 103 #if AGX_LAAS_ENABLE() 224 #ifndef STANDALONE_RUNTIME 238 bool unlock(
const char* licenseString);
250 bool hasKey(
const char* key )
const;
310 SINGLETON_CLASSNAME_METHOD();
313 #ifndef STANDALONE_RUNTIME 331 #ifndef STANDALONE_RUNTIME 334 #if AGX_LAAS_ENABLE() 335 bool readLaasLicense();
339 bool readAgxLicense();
342 void fillTable(
void* ptr );
357 UniqueIdVector m_uniqueIds;
const agx::String & getExtendedStatus() const
Provides optional extended status information about why license validation failed.
struct agx::UniqueIdStruct_ UniqueIdStruct
Struct holding information about a Unique Id.
agx::String encryptRuntimeActivation(int runtimeLicenseId, const agx::String &runtimeLicensePassword, const agx::String &applicationFilename) const
Encrypt license id and password for runtime activation.
bool hasKey(const char *key) const
bool activateAgxLicense(int licenseId, const agx::String &activationPassword)
Perform online activation of AGX.
#define AGXPHYSICS_EXPORT
AgXString< std::string > String
void clear()
Clear any previously loaded license.
static bool isInitialized()
virtual void shutdown() override
Singleton cleanup method.
agx::String readEncryptedLicense()
Read the encrypted license, normally the contents from the license file.
static Runtime * instance()
Singleton instance method.
bool checkVersion(const agx::String &versionString, int generation, int major=-1, int minor=-1, int patch=-1)
Version string can be one of two variants:
bool deactivateAgxLicense()
Deactivate the currently loaded license if the license type allows it.
bool unlock(const char *licenseString)
Will try to unlock AGX with the license provided in licenseString.
static agx::String generateMD5(const agx::String &deviceID)
Utility method using agxStream::MD5Checksum::getMD5.
bool verifyAndUnlock(const char *licenseStr)
For internal usage. Use one of the unlock functions instead.
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
const agx::String & getStatus() const
Provides status information if license validation failed.
bool loadLicenseFile(agx::String licPath, bool forceRefresh=false)
Load a License file that was created by activating AGX.
bool loadLicenseString(agx::String licenseContents, bool forceRefresh=false)
Load a license but provided as a string instead of read from a file.
agx::String generateOfflineActivationRequest(int licenseId, const agx::String &activationPassword)
Generates an activation request for a machine that does not have Internet access. ...
agx::Vector< UniqueIdStruct > UniqueIdVector
agx::String readValue(const char *key) const
const UniqueIdVector & getUniqueIds() const
bool processOfflineActivationRequest(const agx::String &activationResponse)
Processes the response from a manual activation request.
bool isLicenseRefreshed()
Check if license was refreshed upon loading.
bool isModuleEnabled(const char *name) const
Check if a named AGX module is enabled.
const agx::StringVector & getEnabledModules() const
Struct holding information about a Unique Id.
Inheritance with partial specialization due to bug with ref_ptr containers.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
The Runtime class will read a license file upon creation and check what configuration is allowed to r...
bool activateEncryptedRuntime(const agx::String &encryptedRuntimeData, const agx::String &outputLicenseFile)
Perform online activation of an encrypted runtime license.