lestes::msg::report_origin_filter Class Reference

Report output. More...

#include <report_origin_filter.hh>

Inheritance diagram for lestes::msg::report_origin_filter:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void process (const ptr< message > &a_message, const ptr< source_location > &a_location)
 Filters the origin.

Static Public Member Functions

static ptr< report_origin_filtercreate (const ptr< report_filter > &a_output)
 Returns new instance.

Protected Member Functions

 report_origin_filter (const ptr< report_filter > &a_output)
 Creates the object.
virtual void gc_mark (void)
 Marks the object.

Private Member Functions

 report_origin_filter (const report_origin_filter &)
 Hides copy constructor.
report_origin_filteroperator= (const report_origin_filter &)
 Hides assignment operator.

Private Attributes

srp< source_location > last_origin
 Origin of the last report location's file.
srp< file_info > new_file
 New file information with removed origin.

Detailed Description

Report output.

Writes reports to a supplied stream.


Constructor & Destructor Documentation

lestes::msg::report_origin_filter::report_origin_filter ( const ptr< report_filter > &  a_output  )  [protected]

Creates the object.

Creates the report origin filter.

Parameters:
a_output The output of the filter.

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

Hides copy constructor.


Member Function Documentation

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

Filters the origin.

Clear the origin in the location if the same was reported before.

Precondition:
a_message != NULL

a_location != NULL

Parameters:
a_message The message to report.
a_location The location to filter origin from.

Implements lestes::msg::report_filter.

ptr< report_origin_filter > lestes::msg::report_origin_filter::create ( const ptr< report_filter > &  a_output  )  [static]

Returns new instance.

Creates the report origin filter, initializes with output.

Precondition:
a_output != NULL
Parameters:
a_output The output of the filter.
Returns:
New report origin filter.

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

Marks the object.

Marks the object.

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

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

Hides assignment operator.


Member Data Documentation

srp<source_location> lestes::msg::report_origin_filter::last_origin [private]

Origin of the last report location's file.

srp<file_info> lestes::msg::report_origin_filter::new_file [private]

New file information with removed origin.


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