ITK  4.13.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 ITK_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() ITK_OVERRIDE;
63 
64 private:
65  ITK_DISALLOW_COPY_AND_ASSIGN(TransformIOFactoryTemplate);
66 };
67 
69 typedef TransformIOFactoryTemplate<double> TransformIOFactory;
70 
71 } // end namespace itk
72 
73 // Note: Explicit instantiation is done in itkTransformIOFactory.cxx
74 
75 #endif
76 
78 #ifndef ITK_TEMPLATE_EXPLICIT_TransformIOFactory
79 // Explicit instantiation is required to ensure correct dynamic_cast
80 // behavior across shared libraries.
81 //
82 // IMPORTANT: Since within the same compilation unit,
83 // ITK_TEMPLATE_EXPLICIT_<classname> defined and undefined states
84 // need to be considered. This code *MUST* be *OUTSIDE* the header
85 // guards.
86 //
87 # if defined( ITKIOTransformBase_EXPORTS )
88 // We are building this library
89 # define ITKIOTransformBase_EXPORT_EXPLICIT ITK_FORWARD_EXPORT
90 # else
91 // We are using this library
92 # define ITKIOTransformBase_EXPORT_EXPLICIT ITKIOTransformBase_EXPORT
93 # endif
94 namespace itk
95 {
96 
97 #ifdef ITK_HAS_GCC_PRAGMA_DIAG_PUSHPOP
98  ITK_GCC_PRAGMA_DIAG_PUSH()
99 #endif
100 ITK_GCC_PRAGMA_DIAG(ignored "-Wattributes")
101 
104 
105 #ifdef ITK_HAS_GCC_PRAGMA_DIAG_PUSHPOP
106  ITK_GCC_PRAGMA_DIAG_POP()
107 #else
108  ITK_GCC_PRAGMA_DIAG(warning "-Wattributes")
109 #endif
110 
111 } // end namespace itk
112 # undef ITKIOTransformBase_EXPORT_EXPLICIT
113 #endif
#define ITKIOTransformBase_EXPORT_EXPLICIT
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:59
TransformIOBaseTemplate< TParametersValueType >::Pointer TransformIOBasePointer