-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathitkFDFImageIOFactory.h
67 lines (55 loc) · 2.08 KB
/
itkFDFImageIOFactory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* Copyright (C) 2004 Glenn Pierce.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __itkFDFImageIOFactory_h
#define __itkFDFImageIOFactory_h
#include "itkObjectFactoryBase.h"
#include "itkImageIOBase.h"
namespace itk
{
/** \class FDFImageIOFactory
* \brief Create instances of FDFImageIO objects using an object factory.
*/
class ITK_EXPORT FDFImageIOFactory : public ObjectFactoryBase
{
public:
/** Standard class typedefs. */
typedef FDFImageIOFactory Self;
typedef ObjectFactoryBase Superclass;
typedef SmartPointer<Self> Pointer;
typedef SmartPointer<const Self> ConstPointer;
/** Class methods used to interface with the registered factories. */
const char* GetITKSourceVersion(void) const override;
const char* GetDescription(void) const override;
/** Method for class instantiation. */
itkFactorylessNewMacro(Self);
/** Run-time type information (and related methods). */
itkTypeMacro(DicomImageIOFactory, ObjectFactoryBase);
/** Register one factory of this type */
static void RegisterOneFactory(void)
{
FDFImageIOFactory::Pointer FdfFactory = FDFImageIOFactory::New();
ObjectFactoryBase::RegisterFactory(FdfFactory);
}
protected:
FDFImageIOFactory();
~FDFImageIOFactory() override;
private:
FDFImageIOFactory(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
};
} // end namespace itk
#endif