Geom Software - C++ Programming and Geometry Libraries
FADEPLACEHOLDER Documentation pages v1.03
wof_api.h
1 // Copyright (C) Geom Software e.U, Bernhard Kornberger, Graz/Austria
2 //
3 // This file is part of the WOF software. WOF is commercial software.
4 // Users holding a license may use this file in accordance with the
5 // License Agreement.
6 //
7 // This software is provided AS IS with NO WARRANTY OF ANY KIND,
8 // INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS
9 // FOR A PARTICULAR PURPOSE.
10 //
11 // Please contact the author if any conditions of this licensing are
12 // not clear to you.
13 //
14 // Author: Bernhard Kornberger, bkorn (at) geom.at
15 // http://www.geom.at
16 
17 #pragma once
18 #include <vector>
19 #include "wof_api_io.h"
20 #include "wof_api_functions.h"
21 #include "wof_api_definitions.h"
22 #include "TimerC.h"
23 
24 namespace GEOM_WOF {
25 
27 // License functions //
29 
33 #define WOFLIC_ACTIVATED 10
34 
35 #define WOFLIC_GRACE_OK 11
36 
37 #define WOFLIC_GRACE_EXPIRED 12
38 
39 #define WOFLIC_TRIAL 13
40 
41 #define WOFLIC_INVALID 14
42 
51 CLASS_DECLSPEC
52 int getLicenseState();
53 
54 
65 CLASS_DECLSPEC
66 bool activateWof(const char* key,bool bSystemWide);
67 
68 
75 CLASS_DECLSPEC
76 bool deactivateWof();
77 
78 
86 CLASS_DECLSPEC
87 bool extendTrial(const char* key);
88 
94 // Version functions //
97 
103 CLASS_DECLSPEC
104 void printVersion();
105 
106 
107 
110 CLASS_DECLSPEC
111 void getVersion(int& versionMajor,int& versionMinor);
112 
113 
114 
117 CLASS_DECLSPEC
118 bool isRelease();
119 
126 } // Namespace
void getVersion(int &versionMajor, int &versionMinor)
Get version numbers.
bool deactivateWof()
Deactivate WOF license.
void printVersion()
Print version number.
bool extendTrial(const char *key)
Extend Trial.
int getLicenseState()
Check the license state.
Definition: Point3.h:23
bool activateWof(const char *key, bool bSystemWide)
Activate WOF license.
bool isRelease()
Check if the present binary is a Release or Debug build.