go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
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 charT, class traits = char_traits<charT> >
40 class xoutrow : public xoutbase<charT, traits>
41 {
42 public:
43 
44  typedef xoutrow Self;
46 
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;
54  typedef typename Superclass::ios_type ios_type;
55 
62 
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 
114 
115 }; // end class xoutrow
116 
117 
118 } // end namespace xoutlibrary
119 
120 #include "xoutrow.hxx"
121 
122 #endif // end #ifndef __xoutrow_h
123 
Superclass::XStreamMapEntryType XStreamMapEntryType
Definition: xoutrow.h:61
XStreamMapType::value_type XStreamMapEntryType
Definition: xoutbase.h:66
basic_ios< charT, traits > ios_type
Definition: xoutbase.h:59
Superclass::CStreamMapIteratorType CStreamMapIteratorType
Definition: xoutrow.h:58
Superclass::char_type char_type
Definition: xoutrow.h:49
The xoutrow class can easily generate tables.
Definition: xoutrow.h:40
Superclass::XStreamMapIteratorType XStreamMapIteratorType
Definition: xoutrow.h:59
CStreamMapType::value_type CStreamMapEntryType
Definition: xoutbase.h:65
Superclass::ostream_type ostream_type
Definition: xoutrow.h:53
xoutcell< charT, traits > XOutCellType
Definition: xoutrow.h:64
xoutbase< charT, traits > Superclass
Definition: xoutrow.h:45
basic_ostream< charT, traits > ostream_type
Definition: xoutbase.h:58
Superclass::CStreamMapEntryType CStreamMapEntryType
Definition: xoutrow.h:60
Superclass::ios_type ios_type
Definition: xoutrow.h:54
Superclass::int_type int_type
Definition: xoutrow.h:50
traits::pos_type pos_type
Definition: xoutbase.h:56
XStreamMapType m_CellMap
Definition: xoutrow.h:113
Superclass::XStreamMapType XStreamMapType
Definition: xoutrow.h:57
XStreamMapType::iterator XStreamMapIteratorType
Definition: xoutbase.h:64
Base class for xout.
Definition: xoutbase.h:46
Superclass::traits_type traits_type
Definition: xoutrow.h:48
Superclass::off_type off_type
Definition: xoutrow.h:52
traits::int_type int_type
Definition: xoutbase.h:55
std::map< std::string, Self * > XStreamMapType
Definition: xoutbase.h:62
std::map< std::string, ostream_type * > CStreamMapType
Definition: xoutbase.h:61
Superclass::pos_type pos_type
Definition: xoutrow.h:51
traits::off_type off_type
Definition: xoutbase.h:57
CStreamMapType::iterator CStreamMapIteratorType
Definition: xoutbase.h:63
Superclass::CStreamMapType CStreamMapType
Definition: xoutrow.h:56
Stores the input in a string stream.
Definition: xoutcell.h:36


Generated on 06-12-2013 for elastix by doxygen 1.8.5 elastix logo