Geom Software - C++ Programming and Geometry Libraries
WOF Documentation pages v1.04
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 
37 #define WOFLIC_ACTIVATED 10
38 
39 #define WOFLIC_GRACE_OK 11
40 
41 #define WOFLIC_GRACE_EXPIRED 12
42 
43 #define WOFLIC_TRIAL 13
44 
45 #define WOFLIC_INVALID 14
46 
55 CLASS_DECLSPEC
56 int getLicenseState();
57 
58 
73 CLASS_DECLSPEC
74 bool activateWof(const char* key,bool bSystemWide);
75 
76 
86 CLASS_DECLSPEC
87 bool deactivateWof();
88 
89 
98 CLASS_DECLSPEC
99 bool extendTrial(const char* key);
100 
106 // Version functions //
109 //
123 CLASS_DECLSPEC
124 void printVersion();
125 
126 
127 
134 CLASS_DECLSPEC
135 void getVersion(int& versionMajor,int& versionMinor);
136 
137 
138 
146 CLASS_DECLSPEC
147 bool isRelease();
148 
155 } // 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.