#include <report_origin_filter.hh>
Inheritance diagram for lestes::msg::report_origin_filter:
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_filter > | create (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_filter & | operator= (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. |
Writes reports to a supplied stream.
lestes::msg::report_origin_filter::report_origin_filter | ( | const ptr< report_filter > & | a_output | ) | [protected] |
Creates the object.
Creates the report origin filter.
a_output | The output of the filter. |
lestes::msg::report_origin_filter::report_origin_filter | ( | const report_origin_filter & | ) | [private] |
Hides copy constructor.
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.
a_location != NULL
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.
a_output | The output of the filter. |
void lestes::msg::report_origin_filter::gc_mark | ( | void | ) | [protected, virtual] |
report_origin_filter& lestes::msg::report_origin_filter::operator= | ( | const report_origin_filter & | ) | [private] |
Hides assignment operator.
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.