MeVisLab Toolbox Reference
mlInitSystemITKSupport.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #pragma once
14 
15 #ifdef WIN32
16 // Suppresses warning C4275: class 'SoCoordinate4' ist keine DLL-Schnittstelle ..."
17 #pragma warning (disable : 4018) // Disable only for ITK
18 #pragma warning (disable : 4516) // Disable only for ITK
19 #pragma warning (disable : 4701) // Disable only for ITK
20 
21 #pragma warning (disable : 4275)
22 #pragma warning (disable : 4505) // warning C4505: 'debugFunc' : Nichtreferenzierte lokale Funktion wurde entfernt
23 
24 #pragma warning ( disable : 4097 )
25 #if _MSC_VER <= 1200
26 // Only VC6
27 #pragma warning ( disable : 4284 )
28 #endif
29 #pragma warning ( disable : 4310 )
30 #pragma warning ( disable : 4511 )
31 #pragma warning ( disable : 4512 )
32 #pragma warning ( disable : 4127 )
33 #if _MSC_VER <= 1200
34 // Only VC6
35 #pragma warning ( disable : 4663 )
36 #endif
37 
38 #endif // WIN32
39 
40 // The following code is intended to be expanded at the end of the
41 // itk<config>FFTImageFilter.h files
42 namespace itk {
43 
45 
47  {
48  public:
49  explicit FFTImageFilterInitFactoryRegisterManager(void (* const list[])(void))
50  {
51  for (; *list != nullptr; ++list)
52  {
53  (*list)();
54  }
55  }
56  };
57 
58  //
59  // The code below registers available FFT helpers using static initialization in
60  // application translation units. Note that this code will be expanded in the
61  // ITK-based applications and not in ITK itself.
62  //
63  void (* const FFTImageFilterInitFactoryRegisterList[])(void) = {
65  nullptr };
67 
68 }
69 
70 #define ITKML_TYPENAME typename
71 
72 //--------------- DLL exporting ----------------------
73 #ifdef MLITK_SUPPORT_EXPORTS
74 
75 // To make functions, classes and other symbols available
76 // on this dll interfaces, they must be exported explicitly
77 // on win32 systems. We add simply MLITK_EXPORT before
78 // them.
79 #define MLITK_SUPPORT_EXPORT ML_LIBRARY_EXPORT_ATTRIBUTE
80 
81 #else // else MLITK_SUPPORT_EXPORT
84 #define MLITK_SUPPORT_EXPORT ML_LIBRARY_IMPORT_ATTRIBUTE
85 
86 #endif // else MLITK_SUPPORT_EXPORT
FFTImageFilterInitFactoryRegisterManager(void(*const list[])(void))
Include dll-specific settings.
const FFTImageFilterInitFactoryRegisterManager FFTImageFilterInitFactoryRegisterManagerInstance(FFTImageFilterInitFactoryRegisterList)
void(*const FFTImageFilterInitFactoryRegisterList[])(void)
void VnlFFTImageFilterInitFactoryRegister__Private()