RTK  1.4.0
Reconstruction Toolkit
rtkHndImageIOFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright RTK 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 
19 //#ifndef ITKHNDIMAGEIOFACTORY_H
20 //#define ITKHNDIMAGEIOFACTORY_H
21 
22 #ifndef rtkHndImageIOFactory_h
23 #define rtkHndImageIOFactory_h
24 
25 #include "rtkWin32Header.h"
26 #include "rtkHndImageIO.h"
27 
28 // itk include
29 #include <itkImageIOBase.h>
30 #include <itkObjectFactoryBase.h>
31 #include <itkVersion.h>
32 
33 namespace rtk
34 {
35 
44 {
45 public:
51 
53  const char* GetITKSourceVersion(void) const ITK_OVERRIDE {
54  return ITK_SOURCE_VERSION;
55  }
56 
57  const char* GetDescription(void) const ITK_OVERRIDE {
58  return "His ImageIO Factory, allows the loading of His images into insight";
59  }
60 
62  itkFactorylessNewMacro(Self);
63 
66 
68  static void RegisterOneFactory(void) {
69  ObjectFactoryBase::RegisterFactory( Self::New() );
70  }
71 
72 protected:
74  virtual ~HndImageIOFactory() ITK_OVERRIDE {}
76  const myProductType* m_MyProduct;
77 
78 private:
79  HndImageIOFactory(const Self&); //purposely not implemented
80  void operator=(const Self&); //purposely not implemented
81 
82 };
83 
84 } // end namespace
85 
86 #endif // rtkHndImageIOFactory_h
const char * GetDescription(void) const override
itk::SmartPointer< const Self > ConstPointer
ITK factory for Hnd file I/O.
#define ITK_SOURCE_VERSION
itk::ObjectFactoryBase Superclass
virtual ~HndImageIOFactory() override
static void RegisterOneFactory(void)
itk::SmartPointer< Self > Pointer
const char * GetITKSourceVersion(void) const override
HndImageIOFactory myProductType
#define RTK_EXPORT
const myProductType * m_MyProduct