Geom Software - C++ Programming and Geometry Libraries
WOF Documentation pages v1.16
wof_api_definitions.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 
19 namespace GEOM_WOF {
20 
21 
22 // VERSION NUMBERS
23 #define WOF_VER_MAJOR 1
24 #define WOF_VER_MINOR 16
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 
53 class WofLicenseException: public std::exception
54 {
55  virtual const char* what() const throw()
56  {
57  return "WOF License Exception - no valid license";
58  }
59 };
60 
61 
69 struct WofBugException: public std::exception
70 {
71  virtual const char* what() const throw()
72  {
73  return "WOF Exception - Bug *OR* wrong usage. Report a bug and it will be fixed quickly: bkorn@geom.at";
74  }
75 };
76 
77 
106 class CLASS_DECLSPEC ProgressBase
107 {
108 public:
109  ProgressBase(){};
110  virtual ~ProgressBase(){}
111 
118  virtual void update(const std::string& s,double d)=0;
119 };
120 
121 
122 }
Base class for progress subscribers.
Definition: wof_api_definitions.h:107
virtual void update(const std::string &s, double d)=0
update
License-Exception.
Definition: wof_api_definitions.h:54
Definition: Point3.h:23
Bug-Exception.
Definition: wof_api_definitions.h:70