RTK  2.0.1
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 "RTKExport.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 
43 class RTK_EXPORT HndImageIOFactory : public itk::ObjectFactoryBase
44 {
45 public:
46  ITK_DISALLOW_COPY_AND_ASSIGN(HndImageIOFactory);
47 
53 
55  const char* GetITKSourceVersion(void) const override {
56  return ITK_SOURCE_VERSION;
57  }
58 
59  const char* GetDescription(void) const override {
60  return "His ImageIO Factory, allows the loading of His images into insight";
61  }
62 
64  itkFactorylessNewMacro(Self);
65 
68 
70  static void RegisterOneFactory(void) {
71  ObjectFactoryBase::RegisterFactory( Self::New() );
72  }
73 
74 protected:
76  ~HndImageIOFactory() override = default;
79 };
80 
81 } // end namespace
82 
83 #endif // rtkHndImageIOFactory_h
const char * GetDescription(void) const override
ITK factory for Hnd file I/O.
#define ITK_SOURCE_VERSION
static void RegisterOneFactory(void)
const char * GetITKSourceVersion(void) const override
const myProductType * m_MyProduct