fw4spl
itkInrImageIOFactory.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwItkIO/ImageIOFactoryRegistrar.hxx"
8 
9 #include "inr2itk/itkInrImageIOFactory.hpp"
10 
11 #include <itkCreateObjectFunction.h>
12 #include "inr2itk/itkInrImageIO.hpp"
13 #include <itkVersion.h>
14 
15 #include <fwCore/base.hpp>
16 
17 
18 REGISTER_IMAGEIOFACTORY( itk::InrImageIOFactory );
19 
20 
21 namespace itk
22 {
23 
24 void InrImageIOFactory::PrintSelf(std::ostream&, Indent) const
25 {
26 }
27 
28 //------------------------------------------------------------------------------
29 
30 InrImageIOFactory::InrImageIOFactory()
31 {
33  this->RegisterOverride("itkImageIOBase",
34  "itkInrImageIO",
35  "InrImage IO",
36  1,
37  CreateObjectFunction<InrImageIO>::New());
38 }
39 
40 //------------------------------------------------------------------------------
41 
42 InrImageIOFactory::~InrImageIOFactory()
43 {
44 }
45 
46 //------------------------------------------------------------------------------
47 
49 {
50  return ITK_SOURCE_VERSION;
51 }
52 
53 //------------------------------------------------------------------------------
54 
55 const char* InrImageIOFactory::GetDescription() const
56 {
57  return "InrImage ImageIO Factory, allows the loading of InrImage into ITK";
58 }
59 
60 } // end namespace itk
#define SLM_TRACE_FUNC()
Trace contextual function signature.
Definition: spyLog.hpp:329
Create instances of InrImageIO objects using an object factory.
virtual const char * GetITKSourceVersion(void) const override