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&).

Synopsis

Declared in <ball_observeradapter.h>

class ObserverAdapter
    : public Observer

Base Classes

Name

Description

Observer

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

Member Functions

Name

Description

~ObserverAdapter [destructor] [virtual]

Destroy this observer.

publish

publish overloads

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.

Created with MrDocs