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


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo