Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Common
xout
xoutrow.h
Go to the documentation of this file.
1
/*======================================================================
2
3
This file is part of the elastix software.
4
5
Copyright (c) University Medical Center Utrecht. All rights reserved.
6
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7
details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notices for more information.
12
13
======================================================================*/
14
15
#ifndef __xoutrow_h
16
#define __xoutrow_h
17
18
#include "
xoutbase.h
"
19
#include "
xoutcell.h
"
20
#include <sstream>
21
22
namespace
xoutlibrary
23
{
24
using namespace
std;
25
26
39
template
<
class
char
T,
class
traits =
char
_traits<
char
T> >
40
class
xoutrow
:
public
xoutbase
<charT, traits>
41
{
42
public
:
43
44
typedef
xoutrow
Self
;
45
typedef
xoutbase<charT, traits>
Superclass
;
46
48
typedef
typename
Superclass::traits_type
traits_type
;
49
typedef
typename
Superclass::char_type
char_type
;
50
typedef
typename
Superclass::int_type
int_type
;
51
typedef
typename
Superclass::pos_type
pos_type
;
52
typedef
typename
Superclass::off_type
off_type
;
53
typedef
typename
Superclass::ostream_type
ostream_type
;
54
typedef
typename
Superclass::ios_type
ios_type
;
55
56
typedef
typename
Superclass::CStreamMapType
CStreamMapType
;
57
typedef
typename
Superclass::XStreamMapType
XStreamMapType
;
58
typedef
typename
Superclass::CStreamMapIteratorType
CStreamMapIteratorType
;
59
typedef
typename
Superclass::XStreamMapIteratorType
XStreamMapIteratorType
;
60
typedef
typename
Superclass::CStreamMapEntryType
CStreamMapEntryType
;
61
typedef
typename
Superclass::XStreamMapEntryType
XStreamMapEntryType
;
62
64
typedef
xoutcell<charT, traits>
XOutCellType
;
65
67
xoutrow
();
68
70
virtual
~
xoutrow
();
71
75
virtual
void
WriteBufferedData(
void
);
76
81
virtual
void
WriteHeaders(
void
);
82
84
virtual
int
AddTargetCell(
const
char
* name );
85
87
virtual
int
RemoveTargetCell(
const
char
* name );
88
92
virtual
void
SetTargetCells(
const
XStreamMapType
& cellmap );
93
98
virtual
int
AddOutput(
const
char
* name,
ostream_type
* output );
99
virtual
int
AddOutput(
const
char
* name,
Superclass
* output );
100
virtual
int
RemoveOutput(
const
char
* name );
101
102
virtual
void
SetOutputs(
const
CStreamMapType
& outputmap );
103
virtual
void
SetOutputs(
const
XStreamMapType
& outputmap );
104
105
protected
:
106
111
virtual
Superclass
& SelectXCell(
const
char
* name );
112
113
XStreamMapType
m_CellMap
;
114
115
};
// end class xoutrow
116
117
118
}
// end namespace xoutlibrary
119
120
#include "xoutrow.hxx"
121
122
#endif // end #ifndef __xoutrow_h
123
Generated on 21-03-2014 for elastix by
1.8.1.2