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 #ifndef __xoutrow_h
15 #define __xoutrow_h
16 
17 #include "xoutbase.h"
18 #include "xoutcell.h"
19 #include <sstream>
20 
21 namespace xoutlibrary
22 {
23 using namespace std;
24 
37 template< class charT, class traits = char_traits< charT > >
38 class xoutrow : public xoutbase< charT, traits >
39 {
40 public:
41 
42  typedef xoutrow Self;
44 
47  typedef typename Superclass::char_type char_type;
48  typedef typename Superclass::int_type int_type;
49  typedef typename Superclass::pos_type pos_type;
50  typedef typename Superclass::off_type off_type;
52  typedef typename Superclass::ios_type ios_type;
53 
60 
63 
65  xoutrow();
66 
68  virtual ~xoutrow();
69 
73  virtual void WriteBufferedData( void );
74 
79  virtual void WriteHeaders( void );
80 
82  virtual int AddTargetCell( const char * name );
83 
85  virtual int RemoveTargetCell( const char * name );
86 
90  virtual void SetTargetCells( const XStreamMapType & cellmap );
91 
96  virtual int AddOutput( const char * name, ostream_type * output );
97 
98  virtual int AddOutput( const char * name, Superclass * output );
99 
100  virtual int RemoveOutput( const char * name );
101 
102  virtual void SetOutputs( const CStreamMapType & outputmap );
103 
104  virtual void SetOutputs( const XStreamMapType & outputmap );
105 
106 protected:
107 
112  virtual Superclass & SelectXCell( const char * name );
113 
115 
116 };
117 
118 } // end namespace xoutlibrary
119 
120 #include "xoutrow.hxx"
121 
122 #endif // end #ifndef __xoutrow_h
Superclass::XStreamMapEntryType XStreamMapEntryType
Definition: xoutrow.h:59
XStreamMapType::value_type XStreamMapEntryType
Definition: xoutbase.h:63
Superclass::CStreamMapIteratorType CStreamMapIteratorType
Definition: xoutrow.h:56
Superclass::char_type char_type
Definition: xoutrow.h:47
The xoutrow class can easily generate tables.
Definition: xoutrow.h:38
Superclass::XStreamMapIteratorType XStreamMapIteratorType
Definition: xoutrow.h:57
basic_ostream< charT, traits > ostream_type
Definition: xoutbase.h:55
CStreamMapType::value_type CStreamMapEntryType
Definition: xoutbase.h:62
xoutcell< charT, traits > XOutCellType
Definition: xoutrow.h:62
Superclass::ostream_type ostream_type
Definition: xoutrow.h:51
Superclass::CStreamMapEntryType CStreamMapEntryType
Definition: xoutrow.h:58
Superclass::ios_type ios_type
Definition: xoutrow.h:52
Superclass::int_type int_type
Definition: xoutrow.h:48
traits::pos_type pos_type
Definition: xoutbase.h:53
XStreamMapType m_CellMap
Definition: xoutrow.h:114
Superclass::XStreamMapType XStreamMapType
Definition: xoutrow.h:55
XStreamMapType::iterator XStreamMapIteratorType
Definition: xoutbase.h:61
Base class for xout.
Definition: xoutbase.h:43
xoutbase< charT, traits > Superclass
Definition: xoutrow.h:43
Superclass::traits_type traits_type
Definition: xoutrow.h:46
Superclass::off_type off_type
Definition: xoutrow.h:50
traits::int_type int_type
Definition: xoutbase.h:52
std::map< std::string, Self * > XStreamMapType
Definition: xoutbase.h:59
std::map< std::string, ostream_type * > CStreamMapType
Definition: xoutbase.h:58
Superclass::pos_type pos_type
Definition: xoutrow.h:49
traits::off_type off_type
Definition: xoutbase.h:54
CStreamMapType::iterator CStreamMapIteratorType
Definition: xoutbase.h:60
Superclass::CStreamMapType CStreamMapType
Definition: xoutrow.h:54
Stores the input in a string stream.
Definition: xoutcell.h:35
basic_ios< charT, traits > ios_type
Definition: xoutbase.h:56


Generated on 27-04-2014 for elastix by doxygen 1.8.6 elastix logo