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


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