Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Utilities
ITK
Code
IO
itkBrains2HeaderFactory.cxx
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Insight Segmentation & Registration Toolkit
4
Module: $RCSfile: itkBrains2HeaderFactory.cxx,v $
5
Language: C++
6
Date: $Date: 2007-12-03 13:13:07 $
7
Version: $Revision: 1.4 $
8
9
Copyright (c) Insight Software Consortium. All rights reserved.
10
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
15
16
=========================================================================*/
17
#include "
itkBrains2HeaderFactory.h
"
18
#include "
itkBrains2IPLHeaderInfo.h
"
19
#include "
itkBrains2MaskHeaderInfo.h
"
20
21
namespace
itk
22
{
23
Brains2HeaderBase::Pointer
24
Brains2HeaderFactory::CreateBrains2HeaderReader
(
const
std::string & TypeID)
25
{
26
if
( TypeID ==
Brains2IPLHeaderInfo
().GetHeaderBeginTag() )
27
{
28
return
new
Brains2IPLHeaderInfo
;
29
}
30
else
if
( TypeID ==
Brains2MaskHeaderInfo
().GetHeaderBeginTag() )
31
{
32
return
new
Brains2MaskHeaderInfo
;
33
}
34
#if 0 //_itkROIHeaderInfo_h
35
else
if
( TypeID == ROIHeaderInfo().GetHeaderBeginTag() )
36
{
37
return
new
ROIHeaderInfo;
38
}
39
#endif
40
#if 0
41
else
if
( TypeID == Brains2TalairachParametersHeaderInfo().GetHeaderBeginTag() )
42
{
43
return
new
Brains2TalairachParametersHeaderInfo;
44
}
45
assert(0==1);
46
#endif
47
return
NULL
;
48
}
49
50
Brains2HeaderBase::Pointer
51
Brains2HeaderFactory::CreateBrains2HeaderWriter
(
const
std::string & TypeID)
52
{
53
return
Brains2HeaderFactory::CreateBrains2HeaderReader
(TypeID);
54
}
55
56
Brains2HeaderFactory::Brains2HeaderFactory
()
57
{
58
//Do nothing
59
}
60
Brains2HeaderFactory::~Brains2HeaderFactory
()
61
{
62
//Do nothing
63
}
64
}
// end namespace itk
Generated at Sat Feb 2 2013 23:30:29 for
Orfeo Toolbox
with
doxygen 1.8.1.1