|
BDE 4.39.x Production Release
|
#include <ball_observeradapter.h>
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&).
Public Member Functions | |
| ~ObserverAdapter () BSLS_KEYWORD_OVERRIDE | |
| void | publish (const Record &record, const Context &context) BSLS_KEYWORD_OVERRIDE=0 |
| void | publish (const bsl::shared_ptr< const Record > &record, const Context &context) BSLS_KEYWORD_OVERRIDE |
| void | releaseRecords () BSLS_KEYWORD_OVERRIDE |
Public Member Functions inherited from ball::Observer | |
| virtual | ~Observer () |
| ball::ObserverAdapter::~ObserverAdapter | ( | ) |
Destroy this observer.
|
inlinevirtual |
Process the specified log record having the specified publishing context.
Reimplemented from ball::Observer.
Process the record referred by the specified log shared pointer record.
ObserverAdapter should not implement this method. Reimplemented from ball::Observer.
|
inlinevirtual |
Discard any shared reference to a Record object that was supplied to the publish method and is held by this observer.
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.