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  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __xoutsimple_h
19 #define __xoutsimple_h
20 
21 #include "xoutbase.h"
22 
23 namespace xoutlibrary
24 {
25 using namespace std;
26 
36 template< class charT, class traits = char_traits< charT > >
37 class xoutsimple : public xoutbase< charT, traits >
38 {
39 public:
40 
42  typedef xoutsimple Self;
44 
46  typedef typename Superclass::char_type char_type;
47  typedef typename Superclass::int_type int_type;
48  typedef typename Superclass::pos_type pos_type;
49  typedef typename Superclass::off_type off_type;
51  typedef typename Superclass::ios_type ios_type;
52 
59 
61  xoutsimple();
62 
64  virtual ~xoutsimple();
65 
67  virtual int AddOutput( const char * name, ostream_type * output );
68 
69  virtual int AddOutput( const char * name, Superclass * output );
70 
71  virtual int RemoveOutput( const char * name );
72 
73  virtual void SetOutputs( const CStreamMapType & outputmap );
74 
75  virtual void SetOutputs( const XStreamMapType & outputmap );
76 
78  virtual const CStreamMapType & GetCOutputs( void );
79 
80  virtual const XStreamMapType & GetXOutputs( void );
81 
82 };
83 
84 } // end namespace xoutlibrary
85 
86 #include "xoutsimple.hxx"
87 
88 #endif // end #ifndef __xoutsimple_h
XStreamMapType::value_type XStreamMapEntryType
Definition: xoutbase.h:67
xoutbase< charT, traits > Superclass
Definition: xoutsimple.h:43
Superclass::int_type int_type
Definition: xoutsimple.h:47
basic_ostream< charT, traits > ostream_type
Definition: xoutbase.h:59
CStreamMapType::value_type CStreamMapEntryType
Definition: xoutbase.h:66
Superclass::CStreamMapIteratorType CStreamMapIteratorType
Definition: xoutsimple.h:55
Superclass::char_type char_type
Definition: xoutsimple.h:46
traits::pos_type pos_type
Definition: xoutbase.h:57
xout class with only basic functionality.
Definition: xoutsimple.h:37
Superclass::CStreamMapType CStreamMapType
Definition: xoutsimple.h:53
Superclass::traits_type traits_type
Definition: xoutsimple.h:45
XStreamMapType::iterator XStreamMapIteratorType
Definition: xoutbase.h:65
Base class for xout.
Definition: xoutbase.h:47
traits::int_type int_type
Definition: xoutbase.h:56
Superclass::XStreamMapType XStreamMapType
Definition: xoutsimple.h:54
std::map< std::string, Self * > XStreamMapType
Definition: xoutbase.h:63
Superclass::XStreamMapEntryType XStreamMapEntryType
Definition: xoutsimple.h:58
Superclass::CStreamMapEntryType CStreamMapEntryType
Definition: xoutsimple.h:57
Superclass::ostream_type ostream_type
Definition: xoutsimple.h:50
std::map< std::string, ostream_type * > CStreamMapType
Definition: xoutbase.h:62
Superclass::ios_type ios_type
Definition: xoutsimple.h:51
traits::off_type off_type
Definition: xoutbase.h:58
Superclass::XStreamMapIteratorType XStreamMapIteratorType
Definition: xoutsimple.h:56
CStreamMapType::iterator CStreamMapIteratorType
Definition: xoutbase.h:64
basic_ios< charT, traits > ios_type
Definition: xoutbase.h:60
Superclass::off_type off_type
Definition: xoutsimple.h:49
Superclass::pos_type pos_type
Definition: xoutsimple.h:48


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo