Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkAddonTestingUtilities.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Kitware Inc.
6 
7  See COPYRIGHT.txt
8  or http://www.slicer.org/copyright/copyright.txt for details.
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  This file was originally developed by Jean-Christophe Fillion-Robin, Kitware Inc.
17  and was partially funded by NIH grant 1U24CA194354-01
18 
19 ==============================================================================*/
20 
21 #ifndef __vtkAddonTestingUtilities_h
22 #define __vtkAddonTestingUtilities_h
23 
24 #include "vtkAddon.h"
25 
41 
43 {
44 
45 VTK_ADDON_EXPORT
46 bool CheckInt(int line, const std::string& description,
47  int current, int expected);
48 
49 VTK_ADDON_EXPORT
50 bool CheckDoubleTolerance(int line, const std::string& description,
51  double current, double expected, double tolerance);
52 
53 VTK_ADDON_EXPORT
54 bool CheckNotNull(int line, const std::string& description,
55  const void* pointer);
56 
57 VTK_ADDON_EXPORT
58 bool CheckNull(int line, const std::string& description,
59  const void* pointer);
60 
61 VTK_ADDON_EXPORT
62 bool CheckPointer(int line, const std::string& description,
63  void* current, void* expected, bool errorIfDifferent = true);
64 
65 VTK_ADDON_EXPORT
66 bool CheckString(int line, const std::string& description,
67  const char* current, const char* expected, bool errorIfDifferent = true );
68 
69 } // namespace vtkAddonTestingUtilities
70 
71 #include "vtkAddonTestingUtilities.txx"
72 
73 #endif
VTK_ADDON_EXPORT bool CheckPointer(int line, const std::string &description, void *current, void *expected, bool errorIfDifferent=true)
VTK_ADDON_EXPORT bool CheckString(int line, const std::string &description, const char *current, const char *expected, bool errorIfDifferent=true)
VTK_ADDON_EXPORT bool CheckNotNull(int line, const std::string &description, const void *pointer)
VTK_ADDON_EXPORT bool CheckDoubleTolerance(int line, const std::string &description, double current, double expected, double tolerance)
VTK_ADDON_EXPORT bool CheckInt(int line, const std::string &description, int current, int expected)
VTK_ADDON_EXPORT bool CheckNull(int line, const std::string &description, const void *pointer)