MetricComponent1Factory.h 2.37 KB
Newer Older
1
2
/*=========================================================================
 *
Floris Berendsen's avatar
Floris Berendsen committed
3
4
 *  Copyright Leiden University Medical Center, Erasmus University Medical 
 *  Center and contributors
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0.txt
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 *=========================================================================*/
19
20
#ifndef itkMetricComponent1Factory_h
#define itkMetricComponent1Factory_h
21

22
23
#include "selxComponentSelector.h"
#include "selxComponentBase.h"
24

Floris Berendsen's avatar
Floris Berendsen committed
25
namespace selx
26
{
27
/** \class MetricComponent1Factory
28
29
30
 * \brief Create instances of MetaImageIO objects using an object factory.
 * \ingroup ITKIOMeta
 */
Floris Berendsen's avatar
Floris Berendsen committed
31
  class MetricComponent1Factory :public itk::ObjectFactoryBase
32
33
34
{
public:
  /** Standard class typedefs. */
35
  typedef MetricComponent1Factory         Self;
Floris Berendsen's avatar
Floris Berendsen committed
36
37
38
  typedef itk::ObjectFactoryBase          Superclass;
  typedef itk::SmartPointer< Self >       Pointer;
  typedef itk::SmartPointer< const Self > ConstPointer;
39
40
41
42
43
44
45
46
47
48

  /** Class methods used to interface with the registered factories. */
  virtual const char * GetITKSourceVersion() const ITK_OVERRIDE;

  virtual const char * GetDescription() const ITK_OVERRIDE;

  /** Method for class instantiation. */
  itkFactorylessNewMacro(Self);

  /** Run-time type information (and related methods). */
49
  itkTypeMacro(MetricComponent1Factory, ObjectFactoryBase);
50
51
52
53

  /** Register one factory of this type  */
  static void RegisterOneFactory()
  {
54
    MetricComponent1Factory::Pointer MetricComponent1Factory = MetricComponent1Factory::New();
55

56
    ObjectFactoryBase::RegisterFactory(MetricComponent1Factory);
57
58
59
  }

protected:
60
61
  MetricComponent1Factory();
  ~MetricComponent1Factory() {};
62
63

private:
64
  MetricComponent1Factory(const Self &); //purposely not implemented
65
66
  void operator=(const Self &);     //purposely not implemented
};
Floris Berendsen's avatar
Floris Berendsen committed
67
} // end namespace selx
68

69

70
#ifndef ITK_MANUAL_INSTANTIATION
71
#include "itkMetricComponent1Factory.hxx"
72
73
#endif
#endif