Geom Software - C++ Programming and Geometry Libraries
WOF Documentation pages v1.11
wof_api.h
Go to the documentation of this file.
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
17 #pragma once
18 #include <vector>
19 #ifndef WOF_EXPORT
20 #include "License.h"
21 #endif
22 
23 #include "wof_api_io.h"
24 #include "wof_api_functions.h"
25 #include "wof_api_definitions.h"
26 #include "TimerC.h"
27 
28 namespace GEOM_WOF {
29 
31 // License functions //
33 
42 #define WOFLIC_ACTIVATED 10
44 #define WOFLIC_GRACE_OK 11
46 #define WOFLIC_GRACE_EXPIRED 12
48 #define WOFLIC_TRIAL 13
50 #define WOFLIC_INVALID 14
52 #define WOFLIC_PURE 15
53 
62 CLASS_DECLSPEC
64 
67 CLASS_DECLSPEC
68 void printLicense();
69 
72 CLASS_DECLSPEC
73 bool isPure();
74 
75 
90 CLASS_DECLSPEC
91 bool activateWof(const char* key,bool bSystemWide);
92 
93 
103 CLASS_DECLSPEC
105 
106 
115 CLASS_DECLSPEC
116 bool extendTrial(const char* key);
117 
124 // Version functions //
126 //
140 CLASS_DECLSPEC
142 
143 
144 
151 CLASS_DECLSPEC
152 void getVersion(int& versionMajor,int& versionMinor);
153 
154 
155 
163 CLASS_DECLSPEC
164 bool isRelease();
165 
172 } // Namespace
int getLicenseState()
Check the license state.
bool isPure()
Check if pure or lm build.
bool extendTrial(const char *key)
Extend Trial.
void printLicense()
Print license details.
bool activateWof(const char *key, bool bSystemWide)
Activate WOF license.
bool deactivateWof()
Deactivate WOF license.
bool isRelease()
Check if the present binary is a Release or Debug build.
void printVersion()
Print version number.
void getVersion(int &versionMajor, int &versionMinor)
Get version numbers.
Definition: Point3.h:23