 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
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;
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
378 #ifndef STANDALONE_RUNTIME
381 #if AGX_LAAS_ENABLE()
382 bool readLaasLicense();
386 bool readAgxLicense();
389 void fillTable(
void* ptr );
static bool isInitialized()
struct agx::UniqueIdStruct_ UniqueIdStruct
Struct holding information about a Unique Id.
#define DOXYGEN_END_INTERNAL_BLOCK()
bool isFloatingLicense() const
Query licensetype.
bool activateEncryptedRuntime(const agx::String &encryptedRuntimeData, const agx::String &outputLicenseFile)
Perform online activation of an encrypted runtime license.
bool isLicenseRefreshed()
Check if license was refreshed upon loading.
#define DOXYGEN_START_INTERNAL_BLOCK()
const agx::String & getExtendedStatus() const
Provides optional extended status information about why license validation failed.
bool deactivateAgxLicense()
Deactivate the currently loaded license if the license type allows it.
agx::String readEncryptedLicense()
Read the encrypted license, normally the contents from the license file.
const agx::String & readValue(const char *key) const
bool activateAgxLicense(int licenseId, const agx::String &activationPassword)
Perform online activation of AGX.
static Runtime * instance()
Singleton instance method.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXPHYSICS_EXPORT
static agx::String generateMD5(const agx::String &deviceID)
Utility method using agxStream::MD5Checksum::getMD5.
agx::String encryptRuntimeActivation(int runtimeLicenseId, const agx::String &runtimeLicensePassword, const agx::String &applicationFilename) const
Encrypt license id and password for runtime activation.
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:
agx::Vector< UniqueIdStruct > UniqueIdVector
bool processOfflineActivationRequest(const agx::String &activationResponse)
Processes the response from a manual activation request.
bool closeNetworkSession()
Close the active network session.
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
virtual void shutdown() override
Singleton cleanup method.
void clear()
Clear any previously loaded license.
The Runtime class will read a license file upon creation and check what configuration is allowed to r...
bool loadLicenseString(const agx::String &licenseContents, bool forceRefresh=false)
Load a license but provided as a string instead of read from a file.
Inheritance with partial specialization due to bug with ref_ptr containers.
bool verifyAndUnlock(const char *licenseStr)
Unlock AGX Dynamics using obfuscated license string.
const agx::String & getStatus() const
Provides status information if license validation failed.
agx::String generateOfflineActivationRequest(int licenseId, const agx::String &activationPassword)
Generates an activation request for a machine that does not have Internet access.
bool unlock(const char *licenseString)
Will try to unlock AGX with the license provided in licenseString.
bool isModuleEnabled(const char *name) const
Check if a named AGX module is enabled.
bool openNetworkSession(const agx::String &licenseFile="floating.lfx")
Try to open a network session using the specified floating license.
const agx::StringVector & getEnabledModules() const
bool hasKey(const char *key) const
AgXString< std::string > String
const UniqueIdVector & getUniqueIds() const
Struct holding information about a Unique Id.
bool loadLicenseFile(const agx::String &licPath, bool forceRefresh=false)
Load a License file that was created by activating AGX.