lestes::msg::report_ostream Class Reference

Report output. More...

#include <report_ostream.hh>

Inheritance diagram for lestes::msg::report_ostream:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void process (const ptr< message > &a_message, const ptr< source_location > &a_location)
 Writes report to stream.

Static Public Member Functions

static ptr< report_ostreamcreate (const ptr< report_filter > &a_output, const ptr< ostream_wrapper > &a_stream)
 Returns new instance.

Protected Member Functions

 report_ostream (const ptr< report_filter > &a_output, const ptr< ostream_wrapper > &a_stream)
 Creates the object.
virtual void gc_mark (void)
 Marks the object.

Private Member Functions

 report_ostream (const report_ostream &)
 Hides copy constructor.
report_ostreamoperator= (const report_ostream &)
 Hides assignment operator.

Private Attributes

srp< ostream_wrapper > stream
 Output stream.

Detailed Description

Report output.

Writes reports to a supplied stream.


Constructor & Destructor Documentation

lestes::msg::report_ostream::report_ostream ( const ptr< report_filter > &  a_output,
const ptr< ostream_wrapper > &  a_stream 
) [protected]

Creates the object.

Creates the report stream output.

Parameters:
a_output The output of the filter.
a_stream The stream to write to.

lestes::msg::report_ostream::report_ostream ( const report_ostream  )  [private]

Hides copy constructor.


Member Function Documentation

void lestes::msg::report_ostream::process ( const ptr< message > &  a_message,
const ptr< source_location > &  a_location 
) [virtual]

Writes report to stream.

Writes the report to a stream.

Precondition:
a_message != NULL

a_location != NULL

Parameters:
a_message The message to write.
a_location The location to write.

Implements lestes::msg::report_filter.

ptr< report_ostream > lestes::msg::report_ostream::create ( const ptr< report_filter > &  a_output,
const ptr< ostream_wrapper > &  a_stream 
) [static]

Returns new instance.

Creates the report stream output, initializes with output and stream.

Precondition:
a_output != NULL

a_stream != NULL

Parameters:
a_output The output of the filter.
a_stream The stream to write to.
Returns:
New report stream output filter.

void lestes::msg::report_ostream::gc_mark ( void   )  [protected, virtual]

Marks the object.

Marks the object.

Reimplemented from lestes::std::mem::keystone.

report_ostream& lestes::msg::report_ostream::operator= ( const report_ostream  )  [private]

Hides assignment operator.


Member Data Documentation

srp<ostream_wrapper> lestes::msg::report_ostream::stream [private]

Output stream.


The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:49:44 2007 for lestes by doxygen 1.5.1-20070107