Geom Software - C++ Programming and Geometry Libraries
FADEPLACEHOLDER Documentation pages v1.03
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 3
25 
26 
27 // DLL IMPORT/EXPORT MACRO
28 #if defined (_WIN32)
29  // ** WINDOWS **
30  //#if defined(WOF_EXPORT)
31  //#define CLASS_DECLSPEC __declspec(dllexport)
32  //#else
33  //#define CLASS_DECLSPEC __declspec(dllimport)
34  //#endif
35 
36  // We compile statically!
37  #define CLASS_DECLSPEC
38 #else
39  // ** LINUX, MAC and other **
40  #define CLASS_DECLSPEC
41 #endif
42 
43 class WofLicenseException: public std::exception
44 {
45  virtual const char* what() const throw()
46  {
47  return "WOF License Exception - no valid license";
48  }
49 };
50 
51 
52 struct WofBugException: public std::exception
53 {
54  virtual const char* what() const throw()
55  {
56  return "WOF Exception - Bug *OR* wrong usage. Report a bug and it will be fixed quickly: bkorn@geom.at";
57  }
58 };
59 
60 
61 
62 
63 }
Definition: wof_api_definitions.h:43
Definition: Point3.h:23
Definition: wof_api_definitions.h:52