go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
xoutsimple.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 __xoutsimple_h
15 #define __xoutsimple_h
16 
17 #include "xoutbase.h"
18 
19 namespace xoutlibrary
20 {
21 using namespace std;
22 
32 template< class charT, class traits = char_traits< charT > >
33 class xoutsimple : public xoutbase< charT, traits >
34 {
35 public:
36 
38  typedef xoutsimple Self;
40 
42  typedef typename Superclass::char_type char_type;
43  typedef typename Superclass::int_type int_type;
44  typedef typename Superclass::pos_type pos_type;
45  typedef typename Superclass::off_type off_type;
47  typedef typename Superclass::ios_type ios_type;
48 
55 
57  xoutsimple();
58 
60  virtual ~xoutsimple();
61 
63  virtual int AddOutput( const char * name, ostream_type * output );
64 
65  virtual int AddOutput( const char * name, Superclass * output );
66 
67  virtual int RemoveOutput( const char * name );
68 
69  virtual void SetOutputs( const CStreamMapType & outputmap );
70 
71  virtual void SetOutputs( const XStreamMapType & outputmap );
72 
74  virtual const CStreamMapType & GetCOutputs( void );
75 
76  virtual const XStreamMapType & GetXOutputs( void );
77 
78 };
79 
80 } // end namespace xoutlibrary
81 
82 #include "xoutsimple.hxx"
83 
84 #endif // end #ifndef __xoutsimple_h
XStreamMapType::value_type XStreamMapEntryType
Definition: xoutbase.h:63
xoutbase< charT, traits > Superclass
Definition: xoutsimple.h:39
Superclass::int_type int_type
Definition: xoutsimple.h:43
basic_ostream< charT, traits > ostream_type
Definition: xoutbase.h:55
CStreamMapType::value_type CStreamMapEntryType
Definition: xoutbase.h:62
Superclass::CStreamMapIteratorType CStreamMapIteratorType
Definition: xoutsimple.h:51
Superclass::char_type char_type
Definition: xoutsimple.h:42
traits::pos_type pos_type
Definition: xoutbase.h:53
xout class with only basic functionality.
Definition: xoutsimple.h:33
Superclass::CStreamMapType CStreamMapType
Definition: xoutsimple.h:49
Superclass::traits_type traits_type
Definition: xoutsimple.h:41
XStreamMapType::iterator XStreamMapIteratorType
Definition: xoutbase.h:61
Base class for xout.
Definition: xoutbase.h:43
traits::int_type int_type
Definition: xoutbase.h:52
Superclass::XStreamMapType XStreamMapType
Definition: xoutsimple.h:50
std::map< std::string, Self * > XStreamMapType
Definition: xoutbase.h:59
Superclass::XStreamMapEntryType XStreamMapEntryType
Definition: xoutsimple.h:54
Superclass::CStreamMapEntryType CStreamMapEntryType
Definition: xoutsimple.h:53
Superclass::ostream_type ostream_type
Definition: xoutsimple.h:46
std::map< std::string, ostream_type * > CStreamMapType
Definition: xoutbase.h:58
Superclass::ios_type ios_type
Definition: xoutsimple.h:47
traits::off_type off_type
Definition: xoutbase.h:54
Superclass::XStreamMapIteratorType XStreamMapIteratorType
Definition: xoutsimple.h:52
CStreamMapType::iterator CStreamMapIteratorType
Definition: xoutbase.h:60
basic_ios< charT, traits > ios_type
Definition: xoutbase.h:56
Superclass::off_type off_type
Definition: xoutsimple.h:45
Superclass::pos_type pos_type
Definition: xoutsimple.h:44


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo