Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

ball::ObserverAdapter Class Reference

#include <ball_observeradapter.h>

Inheritance diagram for ball::ObserverAdapter:
ball::Observer

List of all members.

Public Member Functions

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

Detailed Description

This class aids in the implementation of the Observer protocol by allowing clients to implement that protocol by implementing a single method signature: publish(const Record&, const Context&).

See Component ball_observeradapter


Constructor & Destructor Documentation

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

Destroy this observer.


Member Function Documentation

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

Process the specified log record having the specified publishing context.

Reimplemented from ball::Observer.

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

Process the record referred by the specified log shared pointer record. Note that classes that derive from ObserverAdapter should not implement this method.

Reimplemented from ball::Observer.

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

Discard any shared reference to a Record object that was supplied to the publish method and is held by this observer. Note that classes that derive from ObserverAdapter should not implement this method. Also note that this operation should be called if resources underlying the previously provided shared-pointers must be released.

Reimplemented from ball::Observer.


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