28 #ifndef _cmnMultiplexerStreambufProxy_h
29 #define _cmnMultiplexerStreambufProxy_h
86 template<
class _element,
class _trait>
97 typedef typename std::basic_streambuf<_element, _trait>::int_type
int_type;
101 : OutputChannel(output), LogLevel(level)
116 return OutputChannel;
126 virtual std::streamsize
xsputn(
const _element * s, std::streamsize n);
129 virtual int sync(
void);
151 template <
class _element,
class _trait>
154 return OutputChannel->xsputn(s, n, LogLevel);
159 template <
class _element,
class _trait>
162 return OutputChannel->sync();
170 template<
class _element,
class _trait>
174 return OutputChannel->overflow(c, LogLevel);
178 #endif // _cmnMultiplexerStreambufProxy_h
Portability across compilers and operating systems tools.
virtual std::streamsize xsputn(const _element *s, std::streamsize n)
Definition: cmnMultiplexerStreambufProxy.h:152
virtual int sync(void)
Definition: cmnMultiplexerStreambufProxy.h:160
short cmnLogLevel
Definition: cmnLogLoD.h:55
Types for dynamic control of output messages.
Definition: cmnForwardDeclarations.h:40
cmnMultiplexerStreambufProxy(ChannelType *output, cmnLogLevel level)
Definition: cmnMultiplexerStreambufProxy.h:100
std::basic_streambuf< _element, _trait >::int_type int_type
Definition: cmnMultiplexerStreambufProxy.h:97
Type Definitions for dynamic control of output messages.
cmnLODMultiplexerStreambuf< _element, _trait > ChannelType
Definition: cmnMultiplexerStreambufProxy.h:96
void SetLOD(cmnLogLevel level)
Definition: cmnMultiplexerStreambufProxy.h:110
ChannelType * GetOutput(void) const
Definition: cmnMultiplexerStreambufProxy.h:115
cmnLogLevel GetLOD(void) const
Definition: cmnMultiplexerStreambufProxy.h:105
A Streambuffer class that allows output to multiple streambuf objects for Level of Detail information...
Definition: cmnLODMultiplexerStreambuf.h:108
virtual int_type overflow(int_type c=_trait::eof())
Definition: cmnMultiplexerStreambufProxy.h:172