Honeycomb  0.1
Component-Model Framework
Public Types | Public Member Functions | Public Attributes | List of all members
honey::log::StreamSink Struct Reference

Formats record to a stream. More...

#include <Log.h>

Inheritance diagram for honey::log::StreamSink:
Inheritance graph
[legend]
Collaboration diagram for honey::log::StreamSink:
Collaboration graph
[legend]

Public Types

typedef SharedPtr< StreamSinkPtr
 
- Public Types inherited from honey::log::Sink
typedef SharedPtr< SinkPtr
 

Public Member Functions

 StreamSink (ostream &os)
 
virtual void operator() (const Level &level, const String &record)
 
- Public Member Functions inherited from honey::SharedObj< Sink >
 SharedObj (Alloc &&a=Alloc()) debug_if(
 Construct with allocator that is called to deallocate this shared object when all references have been released. More...
 

Public Attributes

ostream & os
 

Additional Inherited Members

- Protected Member Functions inherited from honey::SharedObj< Sink >
void finalize ()
 Destroys object. Called when strong reference count reaches 0. May be overridden to prevent destruction. More...
 

Detailed Description

Formats record to a stream.

Member Typedef Documentation

Constructor & Destructor Documentation

honey::log::StreamSink::StreamSink ( ostream &  os)
inline

Member Function Documentation

void honey::log::StreamSink::operator() ( const Level level,
const String record 
)
virtual

Implements honey::log::Sink.

Reimplemented in honey::log::FileSink.

Member Data Documentation

ostream& honey::log::StreamSink::os

The documentation for this struct was generated from the following files: