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 
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
xoutlibrary::xoutsimple::pos_type
Superclass::pos_type pos_type
Definition: xoutsimple.h:48
xoutlibrary::xoutsimple::SetOutputs
virtual void SetOutputs(const XStreamMapType &outputmap)
xoutlibrary::xoutsimple::char_type
Superclass::char_type char_type
Definition: xoutsimple.h:46
xoutlibrary::xoutsimple::XStreamMapIteratorType
Superclass::XStreamMapIteratorType XStreamMapIteratorType
Definition: xoutsimple.h:56
xoutlibrary::xoutbase::char_type
charT char_type
Definition: xoutbase.h:55
xoutlibrary::xoutsimple::XStreamMapType
Superclass::XStreamMapType XStreamMapType
Definition: xoutsimple.h:54
xoutlibrary::xoutsimple::GetCOutputs
virtual const CStreamMapType & GetCOutputs(void)
xoutlibrary::xoutbase::XStreamMapEntryType
XStreamMapType::value_type XStreamMapEntryType
Definition: xoutbase.h:67
xoutlibrary::xoutsimple::XStreamMapEntryType
Superclass::XStreamMapEntryType XStreamMapEntryType
Definition: xoutsimple.h:58
xoutlibrary::xoutbase::CStreamMapEntryType
CStreamMapType::value_type CStreamMapEntryType
Definition: xoutbase.h:66
xoutlibrary::xoutsimple::int_type
Superclass::int_type int_type
Definition: xoutsimple.h:47
xoutlibrary::xoutsimple::SetOutputs
virtual void SetOutputs(const CStreamMapType &outputmap)
xoutlibrary::xoutsimple::Superclass
xoutbase< charT, traits > Superclass
Definition: xoutsimple.h:43
xoutlibrary::xoutsimple::xoutsimple
xoutsimple()
xoutlibrary::xoutsimple::~xoutsimple
virtual ~xoutsimple()
xoutlibrary::xoutsimple::off_type
Superclass::off_type off_type
Definition: xoutsimple.h:49
xoutlibrary::xoutsimple::RemoveOutput
virtual int RemoveOutput(const char *name)
xoutlibrary::xoutbase::ostream_type
basic_ostream< charT, traits > ostream_type
Definition: xoutbase.h:59
xoutlibrary::xoutsimple::GetXOutputs
virtual const XStreamMapType & GetXOutputs(void)
xoutlibrary::xoutsimple::CStreamMapIteratorType
Superclass::CStreamMapIteratorType CStreamMapIteratorType
Definition: xoutsimple.h:55
xoutlibrary::xoutbase::XStreamMapIteratorType
XStreamMapType::iterator XStreamMapIteratorType
Definition: xoutbase.h:65
xoutlibrary::xoutsimple::AddOutput
virtual int AddOutput(const char *name, Superclass *output)
xoutlibrary::xoutbase::pos_type
traits::pos_type pos_type
Definition: xoutbase.h:57
xoutlibrary::xoutsimple::ostream_type
Superclass::ostream_type ostream_type
Definition: xoutsimple.h:50
xoutlibrary::xoutbase::off_type
traits::off_type off_type
Definition: xoutbase.h:58
xoutlibrary::xoutsimple::CStreamMapType
Superclass::CStreamMapType CStreamMapType
Definition: xoutsimple.h:53
xoutlibrary::xoutsimple
xout class with only basic functionality.
Definition: xoutsimple.h:38
xoutlibrary::xoutsimple::Self
xoutsimple Self
Definition: xoutsimple.h:42
xoutlibrary
Definition: xoutbase.h:33
xoutlibrary::xoutbase::CStreamMapIteratorType
CStreamMapType::iterator CStreamMapIteratorType
Definition: xoutbase.h:64
xoutlibrary::xoutbase::CStreamMapType
std::map< std::string, ostream_type * > CStreamMapType
Definition: xoutbase.h:62
xoutlibrary::xoutbase::traits_type
traits traits_type
Definition: xoutbase.h:54
xoutlibrary::xoutsimple::traits_type
Superclass::traits_type traits_type
Definition: xoutsimple.h:45
xoutlibrary::xoutbase::XStreamMapType
std::map< std::string, Self * > XStreamMapType
Definition: xoutbase.h:63
xoutlibrary::xoutbase
Base class for xout.
Definition: xoutbase.h:48
xoutlibrary::xoutsimple::CStreamMapEntryType
Superclass::CStreamMapEntryType CStreamMapEntryType
Definition: xoutsimple.h:57
xoutlibrary::xoutbase::int_type
traits::int_type int_type
Definition: xoutbase.h:56
xoutlibrary::xoutbase::ios_type
basic_ios< charT, traits > ios_type
Definition: xoutbase.h:60
xoutlibrary::xoutsimple::ios_type
Superclass::ios_type ios_type
Definition: xoutsimple.h:51
xoutlibrary::xoutsimple::AddOutput
virtual int AddOutput(const char *name, ostream_type *output)
xoutbase.h


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo