Geom Software - C++ Programming and Geometry Libraries
WOF Documentation pages v1.04
License related functions

License related functions. More...

Macros

#define WOFLIC_ACTIVATED   10
 
#define WOFLIC_GRACE_OK   11
 
#define WOFLIC_GRACE_EXPIRED   12
 
#define WOFLIC_TRIAL   13
 
#define WOFLIC_INVALID   14
 

Functions

int GEOM_WOF::getLicenseState ()
 Check the license state. More...
 
bool GEOM_WOF::activateWof (const char *key, bool bSystemWide)
 Activate WOF license. More...
 
bool GEOM_WOF::deactivateWof ()
 Deactivate WOF license. More...
 
bool GEOM_WOF::extendTrial (const char *key)
 Extend Trial. More...
 

Detailed Description

Functions related to the license: Activation, deactivation, trial-extension...

Macro Definition Documentation

◆ WOFLIC_ACTIVATED

#define WOFLIC_ACTIVATED   10

WOFLIC_ACTIVATED means the software is activated

◆ WOFLIC_GRACE_EXPIRED

#define WOFLIC_GRACE_EXPIRED   12

WOFLIC_GRACE_EXPIRED means the software is activated but re-verification (no internet) has failed for a long time. Invalid.

◆ WOFLIC_GRACE_OK

#define WOFLIC_GRACE_OK   11

WOFLIC_GRACE_OK means the software is activated but re-verification has failed (no internet, valid for a sufficiently long grace period)

◆ WOFLIC_INVALID

#define WOFLIC_INVALID   14

WOFLIC_INVALID means there is no valid license (trial, product-key)

◆ WOFLIC_TRIAL

#define WOFLIC_TRIAL   13

WOFLIC_TRIAL means the trial period is still active

Function Documentation

◆ activateWof()

bool GEOM_WOF::activateWof ( const char *  key,
bool  bSystemWide 
)

This function is used when you have a WOF license key. You can choose to activate system-wide or only for the current user.

Parameters
keyis the purchased software key
bSystemWideWhen true then the activation data is stored system-wide. When false the activation is made for the current user.
Note
Activation is only done once. You can use getLicenseState() to find out if the software is already activated.
When the system-wide activation is chosen (bSystemWide=true) then the application needs admin-priviledges.

◆ deactivateWof()

bool GEOM_WOF::deactivateWof ( )

Deactivates the WOF license on the present computer so that the key can be used on another machine. This function enables you to replace a computer. Do not use over-frequently, the number of deactivations is limited, it's not a floating license.

Returns
true in case of success, false otherwise

◆ extendTrial()

bool GEOM_WOF::extendTrial ( const char *  key)
Parameters
keyis a Trial-Extension-key. You ask for such a key to extend the trial period for your non-commercial research project (see the guidelines) or for an extended commercial test periord.
Returns
true in case of success, false otherwise

◆ getLicenseState()

int GEOM_WOF::getLicenseState ( )
Returns
WOFLIC_ACTIVATED when the software is activated
WOFLIC_TRIAL during the trial period
WOFLIC_GRACE_OK when activated but verification has failed (no internet access) which is valid for a grace period
WOFLIC_GRACE_EXPIRED when activated but verification has failed (no internet) for a long time
WOFLIC_INVALID otherwise (trial expired, no license)