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 =========================================================================*/
26 #ifndef vtkFloatingPointExceptions_h
27 #define vtkFloatingPointExceptions_h
28 
29 #include "vtkCommonCoreModule.h" // For export macro
30 #include "vtkSystemIncludes.h" // For VTKCOMMONCORE_EXPORT
31 
32 class VTKCOMMONCORE_EXPORT vtkFloatingPointExceptions
33 {
34 public:
38  static void Enable();
39 
43  static void Disable();
44 
45 private:
46  vtkFloatingPointExceptions() = delete;
48  void operator=(const vtkFloatingPointExceptions&) = delete;
49 };
50 
51 #endif
52 // VTK-HeaderTest-Exclude: vtkFloatingPointExceptions.h
Deal with floating-point exceptions.