Geom Software - C++ Programming and Geometry Libraries
WOF Documentation pages v1.04
wof_api_definitions.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 
19 namespace GEOM_WOF {
20 
21 
22 // VERSION NUMBERS
23 #define PROJECT_VER_MAJOR 1
24 #define PROJECT_VER_MINOR 4
25 
26 
27 // DLL IMPORT/EXPORT MACRO
28 #if defined (_WIN32)
29  // ** WINDOWS **
30  #ifdef WOF_STATIC
31  // Static
32  #define CLASS_DECLSPEC
33  #else
34  // DLL
35  #if defined(WOF_EXPORT)
36  #define CLASS_DECLSPEC __declspec(dllexport)
37  #else
38  #define CLASS_DECLSPEC __declspec(dllimport)
39  #endif
40  #endif
41 #else
42  // ** LINUX, MAC and other **
43  #define CLASS_DECLSPEC
44 #endif
45 
54 class WofLicenseException: public std::exception
55 {
56  virtual const char* what() const throw()
57  {
58  return "WOF License Exception - no valid license";
59  }
60 };
61 
68 struct WofBugException: public std::exception
69 {
70  virtual const char* what() const throw()
71  {
72  return "WOF Exception - Bug *OR* wrong usage. Report a bug and it will be fixed quickly: bkorn@geom.at";
73  }
74 };
75 
76 
77 
78 
79 }
License-Exception.
Definition: wof_api_definitions.h:54
Definition: Point3.h:23
Bug-Exception.
Definition: wof_api_definitions.h:68