22#ifndef _mtsLODMultiplexerStreambuf_h
23#define _mtsLODMultiplexerStreambuf_h
30#if (CISST_OS == CISST_LINUX_RTAI) || (CISST_OS == CISST_LINUX) || (CISST_OS == CISST_SOLARIS) || (CISST_OS == CISST_QNX) || (CISST_OS == CISST_WINDOWS)
32#elif (CISST_OS == CISST_DARWIN) || (CISST_OS == CISST_XENOMAI)
46#if (CISST_OS == CISST_LINUX_RTAI) || (CISST_OS == CISST_LINUX) || (CISST_OS == CISST_SOLARIS) || (CISST_OS == CISST_QNX) || (CISST_OS == CISST_WINDOWS)
51#elif (CISST_OS == CISST_DARWIN) || (CISST_OS == CISST_XENOMAI)
55 } PerThreadChannelElementType;
56 typedef std::vector<PerThreadChannelElementType> PerThreadChannelContainerType;
57 PerThreadChannelContainerType PerThreadChannelContainer;
65 std::streamsize
xsputn(
const char *s, std::streamsize n);
A Streambuffer class that outputs via a callback function.
Definition cmnCallbackStreambuf.h:67
std::basic_streambuf< char, std::char_traits< char > >::int_type int_type
Definition cmnLODMultiplexerStreambuf.h:235
cmnLODMultiplexerStreambuf(std::ofstream &fileStream)
Definition cmnLODMultiplexerStreambuf.h:136
PerThreadChannelType * GetThreadChannel(const osaThreadId &threadId)
BaseType::int_type IntType
Definition mtsLODMultiplexerStreambuf.h:42
IntType overflow(IntType c, cmnLogLevel level)
IntType overflow(IntType c=mtsLODMultiplexerStreambuf::TraitType::eof())
cmnLODMultiplexerStreambuf< char > BaseType
Definition mtsLODMultiplexerStreambuf.h:39
cmnCallbackStreambuf< char > PerThreadChannelType
Definition mtsLODMultiplexerStreambuf.h:41
osaMutex PerThreadChannelMapSync
Definition mtsLODMultiplexerStreambuf.h:61
~mtsLODMultiplexerStreambuf()
std::pair< PerThreadChannelMapType::iterator, bool > PerThreadChannelMapPairType
Definition mtsLODMultiplexerStreambuf.h:49
std::char_traits< char > TraitType
Definition mtsLODMultiplexerStreambuf.h:40
mtsLODMultiplexerStreambuf()
std::streamsize xsputn(const char *s, std::streamsize n, cmnLogLevel level)
std::streamsize xsputn(const char *s, std::streamsize n)
PerThreadChannelMapType PerThreadChannelMap
Definition mtsLODMultiplexerStreambuf.h:50
std::map< osaThreadId, PerThreadChannelType *, osaThreadId > PerThreadChannelMapType
Definition mtsLODMultiplexerStreambuf.h:48
Define a Mutex object.
Definition osaMutex.h:48
ThreadId type.
Definition osaThread.h:77
Declaration of the class cmnCallbackStreambuf.
Type Definitions for dynamic control of output messages.
short cmnLogLevel
Definition cmnLogLoD.h:55
Declaration of osaThread.