ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
IO
XML
include
itkDOMReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright Insight Software 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 __itkDOMReader_h
20
#define __itkDOMReader_h
21
22
#include "
itkDOMNodeXMLReader.h
"
23
#include "
itkObject.h
"
24
#include "
itkLogger.h
"
25
26
namespace
itk
27
{
28
64
template
<
class
TOutput >
65
class
DOMReader
:
public
Object
66
{
67
public
:
68
70
typedef
DOMReader
Self
;
71
72
itkTypeMacro(
DOMReader
,
Object
);
73
74
typedef
TOutput
OutputType
;
75
76
typedef
DOMNode
DOMNodeType
;
77
typedef
typename
DOMNodeType::Pointer
DOMNodePointer
;
78
79
typedef
Logger
LoggerType
;
80
typedef
typename
LoggerType::Pointer
LoggerPointer
;
81
83
itkSetStringMacro(FileName);
84
86
itkGetStringMacro(FileName);
87
92
virtual
void
SetOutput
(
OutputType
* output );
93
95
OutputType
*
GetOutput
();
96
98
const
OutputType
*
GetOutput
()
const
;
99
104
itkGetConstMacro(
Logger
,
LoggerType
* );
105
111
void
Update
(
const
DOMNodeType
* inputdom,
const
void
* userdata = 0 );
112
116
virtual
void
Update
();
117
118
protected
:
119
DOMReader
();
120
128
virtual
void
GenerateData
(
const
DOMNodeType
* inputdom,
const
void
* userdata ) = 0;
129
130
private
:
131
DOMReader
(
const
Self
&);
//purposely not implemented
132
void
operator=
(
const
Self
&);
//purposely not implemented
133
135
itkSetObjectMacro( IntermediateDOM,
DOMNodeType
);
136
itkGetModifiableObjectMacro(IntermediateDOM,
DOMNodeType
);
138
140
std::string
m_FileName
;
141
143
OutputType
*
m_Output
;
144
146
typename
LightObject::Pointer
m_OutputHolder
;
147
149
DOMNodePointer
m_IntermediateDOM
;
150
152
mutable
LoggerPointer
m_Logger
;
153
};
154
155
}
// namespace itk
156
157
#ifndef ITK_MANUAL_INSTANTIATION
158
#include "itkDOMReader.hxx"
159
#endif
160
161
#endif // __itkDOMReader_h
162
Generated on Mon May 13 2013 00:48:40 for ITK by
1.8.3.1