|
cisst-saw
|
#include <osaThreadedLogFile.h>
Public Types | |
| typedef std::basic_streambuf< _element, _trait > | BaseClassType |
| typedef std::basic_streambuf< _element, _trait > | ChannelType |
| typedef std::pair< osaThreadId, ChannelType * > | ElementType |
| typedef std::list< ElementType > | ChannelContainerType |
| typedef ChannelContainerType::iterator | iterator |
| typedef ChannelContainerType::const_iterator | const_iterator |
Public Member Functions | |
| osaThreadedLogFileStreambuf (const std::string &filePrefix) | |
| ChannelType * | AddChannelForThread (const osaThreadId &threadId) |
Protected Types | |
| typedef std::basic_streambuf< _element, _trait >::int_type | int_type |
Protected Member Functions | |
| virtual int | sync () |
| virtual std::streamsize | xsputn (const _element *s, std::streamsize n) |
| virtual int_type | overflow (int_type c=_trait::eof()) |
| typedef std::basic_streambuf<_element, _trait> osaThreadedLogFileStreambuf< _element, _trait >::BaseClassType |
| typedef std::list<ElementType> osaThreadedLogFileStreambuf< _element, _trait >::ChannelContainerType |
Type of internal data structure storing the channels.
| typedef std::basic_streambuf<_element, _trait> osaThreadedLogFileStreambuf< _element, _trait >::ChannelType |
| typedef ChannelContainerType::const_iterator osaThreadedLogFileStreambuf< _element, _trait >::const_iterator |
| typedef std::pair<osaThreadId, ChannelType *> osaThreadedLogFileStreambuf< _element, _trait >::ElementType |
|
protected |
| typedef ChannelContainerType::iterator osaThreadedLogFileStreambuf< _element, _trait >::iterator |
|
inline |
Create the stream buf with the file name prefix. Does nothing else than storing the file name prefix.
| osaThreadedLogFileStreambuf< _element, _trait >::ChannelType * osaThreadedLogFileStreambuf< _element, _trait >::AddChannelForThread | ( | const osaThreadId & | threadId | ) |
Create a file for the current thread and add its buffer to the list of channels.
|
protectedvirtual |
Override the basic_streambuf overflow. overflow() is called when sputc() discovers it does not have space in the storage buffer. In our case, it's always. See more on it in the basic_streambuf documentation.
|
protectedvirtual |
Override the basic_streambuf sync for the current file output.
|
protectedvirtual |
Override the basic_streambuf xsputn for the current file output.