License Handling
Last update: 10.02.2025License handling | |
| DYNARDO_FMOP_API fmop_error_t | FMOP_appendLicenseSearchPath (const char *abs_path) |
| Appends another license search path to the default ones. More... | |
| DYNARDO_FMOP_API fmop_error_t | FMOP_acquireLicense () |
| Acquires an optiSLang enterprise license. More... | |
| DYNARDO_FMOP_API bool | FMOP_licenseLocked () |
| Check whether any license feature was acquired. More... | |
| DYNARDO_FMOP_API fmop_error_t | FMOP_releaseLicense () |
| Release the acquired license. More... | |
Detailed Description
Function Documentation
◆ FMOP_acquireLicense()
| DYNARDO_FMOP_API fmop_error_t FMOP_acquireLicense | ( | ) |
Acquires an optiSLang enterprise license.
- Returns
- fmop_settings_error if a license has already been acquired successfully
- fmop_exception_occurred if any error occures while checking out the requested feature(s)
- fmop_success if a license has been acquired successfully
- Call FMOP_getErrnoString() to get a human readable representation
◆ FMOP_appendLicenseSearchPath()
| DYNARDO_FMOP_API fmop_error_t FMOP_appendLicenseSearchPath | ( | const char * | abs_path | ) |
Appends another license search path to the default ones.
- Deprecated:
- Since 2022 R2. Will be removed in 2023 R1
By default the following license search paths will be checked in the order given:
- @localhost
- the current working directory
- the path pointed to by the environment variable 'LM_LICENSE_FILE'
- the path pointed to by the environment variable 'DYNARDO_LICENSE_FILE'
- Parameters
-
[in] abs_path An absolute file system path, e.g. '/opt/DYNARDO/licensing', 'D:\Licenses', ...
- Returns
- fmop_settings_error if the path given does not exist
- fmop_exception_occurred if the path given invoces any other filesystem error
- fmop_success if the path has been appended successfully
- Call FMOP_getErrnoString() to get a human readable representation
◆ FMOP_licenseLocked()
| DYNARDO_FMOP_API bool FMOP_licenseLocked | ( | ) |
Check whether any license feature was acquired.
- Returns
- True if any license feature is locked, false otherwise
◆ FMOP_releaseLicense()
| DYNARDO_FMOP_API fmop_error_t FMOP_releaseLicense | ( | ) |
Release the acquired license.
Note, that no previously acquired license is released if not all loaded Database and FMOP objects are already released
- Returns
- fmop_settings_error if any Database or FMOP object is not already released
- fmop_success in all other cases
- Call FMOP_getErrnoString() to get a human readable representation