ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkTransformIOFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkTransformIOFactory_h
19 #define itkTransformIOFactory_h
20 
21 #include "ITKIOTransformBaseExport.h"
22 
23 #include "itkObject.h"
24 #include "itkTransformIOBase.h"
25 
26 namespace itk
27 {
28 
31 
36 template<typename TParametersValueType>
37 class ITKIOTransformBase_TEMPLATE_EXPORT TransformIOFactoryTemplate:public Object
38 {
39 public:
42  typedef Object Superclass;
45 
50 
53 
58  CreateTransformIO(const char *path, TransformIOFactoryFileModeType mode);
59 
60 protected:
62  virtual ~TransformIOFactoryTemplate();
63 
64 private:
65  TransformIOFactoryTemplate(const Self &) ITK_DELETE_FUNCTION;
66  void operator=(const Self &) ITK_DELETE_FUNCTION;
67 };
68 
71 
72 } // end namespace itk
73 
74 // Note: Explicit instantiation is done in itkTransformIOFactory.cxx
75 
76 #endif
77 
79 #ifndef ITK_TEMPLATE_EXPLICIT_TransformIOFactory
80 // Explicit instantiation is required to ensure correct dynamic_cast
81 // behavior across shared libraries.
82 //
83 // IMPORTANT: Since within the same compilation unit,
84 // ITK_TEMPLATE_EXPLICIT_<classname> defined and undefined states
85 // need to be considered. This code *MUST* be *OUTSIDE* the header
86 // guards.
87 //
88 # if defined( ITKIOTransformBase_EXPORTS )
89 // We are building this library
90 # define ITKIOTransformBase_EXPORT_EXPLICIT
91 # else
92 // We are using this library
93 # define ITKIOTransformBase_EXPORT_EXPLICIT ITKIOTransformBase_EXPORT
94 # endif
95 namespace itk
96 {
97 
98 #ifdef ITK_HAS_GCC_PRAGMA_DIAG_PUSHPOP
99  ITK_GCC_PRAGMA_DIAG_PUSH()
100 #endif
101 ITK_GCC_PRAGMA_DIAG(ignored "-Wattributes")
102 
105 
106 #ifdef ITK_HAS_GCC_PRAGMA_DIAG_PUSHPOP
107  ITK_GCC_PRAGMA_DIAG_POP()
108 #else
109  ITK_GCC_PRAGMA_DIAG(warning "-Wattributes")
110 #endif
111 
112 } // end namespace itk
113 # undef ITKIOTransformBase_EXPORT_EXPLICIT
114 #endif
#define ITKIOTransformBase_EXPORT_EXPLICIT
Light weight base class for most itk classes.
template class ITKIOTransformBase_EXPORT_EXPLICIT TransformIOFactoryTemplate< float >
SmartPointer< const Self > ConstPointer
TransformIOFactoryFileModeType
TransformIOFactoryTemplate Self
Create instances of TransformIO objects using an object factory.
template class ITKIOTransformBase_EXPORT_EXPLICIT TransformIOFactoryTemplate< double >
Base class for most ITK classes.
Definition: itkObject.h:57
TransformIOBaseTemplate< TParametersValueType >::Pointer TransformIOBasePointer