Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

ball::Observer Class Reference

#include <ball_observer.h>

Inheritance diagram for ball::Observer:
ball::AsyncFileObserver ball::BroadcastObserver ball::FileObserver ball::FileObserver2 ball::FilteringObserver ball::MultiplexObserver ball::ObserverAdapter ball::StreamObserver ball::TestObserver

List of all members.

Public Member Functions

virtual ~Observer ()
virtual void publish (const Record &record, const Context &context)
virtual void publish (const bsl::shared_ptr< const Record > &record, const Context &context)
virtual void releaseRecords ()

Detailed Description

This class provides a protocol for receiving and processing log record output.

See Component ball_observer


Constructor & Destructor Documentation

virtual ball::Observer::~Observer (  )  [virtual]

Destroy this observer.


Member Function Documentation

virtual void ball::Observer::publish ( const Record record,
const Context context 
) [virtual]

Process the specified log record having the specified publishing context.

DEPRECATED: Use the alternative publish overload instead.

Reimplemented in ball::FileObserver, ball::FileObserver2, ball::MultiplexObserver, ball::ObserverAdapter, and ball::TestObserver.

virtual void ball::Observer::publish ( const bsl::shared_ptr< const Record > &  record,
const Context context 
) [virtual]

Process the specified log record having the specified publishing context. The exact definition of publish depends on the implementing class, though the intention is that the log record (whose publication has occurred according to context) be distributed in a human or machine readable form.

Reimplemented in ball::AsyncFileObserver, ball::BroadcastObserver, ball::FileObserver, ball::FileObserver2, ball::FilteringObserver, ball::MultiplexObserver, ball::ObserverAdapter, ball::StreamObserver, and ball::TestObserver.

virtual void ball::Observer::releaseRecords (  )  [virtual]

Discard any shared references to Record objects that were supplied to the publish method, and are held by this observer. Note that this operation should be called if resources underlying the previously provided shared pointers must be released.

Reimplemented in ball::AsyncFileObserver, ball::BroadcastObserver, ball::FileObserver, ball::FileObserver2, ball::FilteringObserver, ball::MultiplexObserver, ball::ObserverAdapter, ball::StreamObserver, and ball::TestObserver.


The documentation for this class was generated from the following file: