20 #include <agx/config/AGX_LAAS_ENABLE.h> 22 #ifdef STANDALONE_RUNTIME 24 #ifdef AGX_LAAS_ENABLE 25 #undef AGX_LAAS_ENABLE 28 #define AGX_LAAS_ENABLE() 0 48 #ifdef STANDALONE_RUNTIME 49 typedef std::string
String;
73 #ifdef STANDALONE_RUNTIME 88 #ifdef STANDALONE_RUNTIME 107 #if AGX_LAAS_ENABLE() 260 #ifndef STANDALONE_RUNTIME 274 bool unlock(
const char* licenseString);
297 bool hasKey(
const char* key )
const;
357 SINGLETON_CLASSNAME_METHOD();
360 #ifndef STANDALONE_RUNTIME 380 #ifndef STANDALONE_RUNTIME 383 #if AGX_LAAS_ENABLE() 384 bool readLaasLicense();
388 bool readAgxLicense();
391 void fillTable(
void* ptr );
406 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.
const agx::String & readValue(const char *key) const
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 isFloatingLicense() const
Query licensetype.
bool activateAgxLicense(int licenseId, const agx::String &activationPassword)
Perform online activation of AGX.
#define AGXPHYSICS_EXPORT
bool loadLicenseFile(const agx::String &licPath, bool forceRefresh=false)
Load a License file that was created by activating AGX.
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.
bool closeNetworkSession()
Close the active network session.
static agx::String generateMD5(const agx::String &deviceID)
Utility method using agxStream::MD5Checksum::getMD5.
bool verifyAndUnlock(const char *licenseStr)
Unlock AGX Dynamics using obfuscated license string.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
const agx::String & getStatus() const
Provides status information if license validation failed.
bool loadLicenseString(const agx::String &licenseContents, bool forceRefresh=false)
Load a license but provided as a string instead of read from a file.
bool openNetworkSession(const agx::String &licenseFile="floating.lfx")
Try to open a network session using the specified floating license.
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
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.