VTK
vtkFloatingPointExceptions.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFloatingPointExceptions.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkFloatingPointExceptions_h
26 #define vtkFloatingPointExceptions_h
27 
28 #include "vtkCommonCoreModule.h" // For export macro
29 #include "vtkSystemIncludes.h" // For VTKCOMMONCORE_EXPORT
30 
32 {
33 public:
35  static void Enable();
36 
38  static void Disable();
39 
40 private:
41  vtkFloatingPointExceptions(); // Not implemented.
42  vtkFloatingPointExceptions(const vtkFloatingPointExceptions&); // Not implemented.
43  void operator=(const vtkFloatingPointExceptions&); // Not implemented.
44 };
45 
46 #endif
47 // VTK-HeaderTest-Exclude: vtkFloatingPointExceptions.h
#define VTKCOMMONCORE_EXPORT
Deal with floating-point exceptions.