lestes::msg::reporter Class Reference

Message reporter. More...

#include <reporter.hh>

Inheritance diagram for lestes::msg::reporter:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void report (const ptr< message > &a_message, const ptr< source_location > &a_location)
 Reports message at location.
void filter_set (const ptr< report_filter > &a_filter)
 Sets active filter.
ptr< report_filterfilter_get (void) const
 Returns active filter.

Static Public Member Functions

static ptr< reporterinstance (void)
 Returns the reporter.

Protected Member Functions

 reporter (const reporter &)
 Hides copy constructor.
reporteroperator= (const reporter &)
 Hides assignment operator.

Protected Attributes

srp< report_filterfilter
 Filter used for reporting.

Static Protected Attributes

static ptr< reportersingleton
 The only instance.

Private Member Functions

 reporter (void)
 Creates the reporter.

Detailed Description

Message reporter.

Represents singleton reporter of messages with location. The behaviour is altered by setting the filter to process the messages.


Constructor & Destructor Documentation

lestes::msg::reporter::reporter ( void   )  [private]

Creates the reporter.

Creates the only reporter.

lestes::msg::reporter::reporter ( const reporter  )  [protected]

Hides copy constructor.


Member Function Documentation

void lestes::msg::reporter::report ( const ptr< message > &  a_message,
const ptr< source_location > &  a_location 
)

Reports message at location.

Reports message at location. Calls process of the active filter.

Precondition:
a_message != NULL

a_location != NULL

filter != NULL

Parameters:
a_message The message to report.
a_location The associated location.

void lestes::msg::reporter::filter_set ( const ptr< report_filter > &  a_filter  ) 

Sets active filter.

Sets report filter to use for processing reports.

Precondition:
a_filter != NULL
Parameters:
a_filter The filter to set.

ptr< report_filter > lestes::msg::reporter::filter_get ( void   )  const

Returns active filter.

Returns active filter.

Returns:
The filter processing the reports.

ptr< reporter > lestes::msg::reporter::instance ( void   )  [static]

Returns the reporter.

Returns the only instance of the object.

Returns:
The singleton reporter object.

reporter& lestes::msg::reporter::operator= ( const reporter  )  [protected]

Hides assignment operator.


Member Data Documentation

srp<report_filter> lestes::msg::reporter::filter [protected]

Filter used for reporting.

ptr< reporter > lestes::msg::reporter::singleton [static, protected]

The only instance.

The only instance of the class. Uses lazy instantiation.


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