lestes::msg::report_end Class Reference

Report end filter. More...

#include <report_end.hh>

Inheritance diagram for lestes::msg::report_end:

lestes::msg::report_filter lestes::std::object lestes::std::mem::keystone List of all members.

Public Member Functions

virtual void process (const ptr< message > &a_message, const ptr< source_location > &a_location)
 Discards a report.

Static Public Member Functions

static ptr< report_endcreate (void)
 Returns new instance.

Protected Member Functions

 report_end (void)
 Creates the object.

Private Member Functions

 report_end (const report_end &)
 Hides copy constructor.
report_endoperator= (const report_end &)
 Hides assignment operator.

Detailed Description

Report end filter.

Represents end filter, discarding all reports. Used at the end of filter chain.

Definition at line 55 of file report_end.hh.


Constructor & Destructor Documentation

lestes::msg::report_end::report_end ( void   )  [protected]

Creates the object.

Creates the report end filter.

Postcondition:
output_get() == NULL

Definition at line 46 of file report_end.cc.

Referenced by create().

00046                           :
00047         report_filter()
00048 {
00049 }
        

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

Hides copy constructor.


Member Function Documentation

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

Discards a report.

Discards any report, effectively terminating the filter chain.

Precondition:
a_message != NULL

a_location != NULL

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

Implements lestes::msg::report_filter.

Definition at line 58 of file report_end.cc.

References lassert.

00060 {
00061         lassert(a_message);
00062         lassert(a_location);
00063         
00064         // do not call process_output
00065 }

ptr< report_end > lestes::msg::report_end::create ( void   )  [static]

Returns new instance.

Returns new object.

Returns:
New report end filter.

Definition at line 71 of file report_end.cc.

References report_end().

Referenced by lestes::lang::cplus::lex::run().

00072 {
00073         return new report_end();
00074 }

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

Hides assignment operator.


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