[#BloombergLP-ball-ObserverAdapter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::ObserverAdapter :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ObserverAdapter : public xref:BloombergLP/ball/Observer.adoc[Observer] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/ball/Observer.adoc[Observer]` | This class provides a protocol for receiving and processing log record output. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/ball/ObserverAdapter/2destructor.adoc[`~ObserverAdapter`] [.small]#[destructor]# [.small]#[virtual]# | Destroy this observer. | xref:BloombergLP/ball/ObserverAdapter/publish-0c1.adoc[`publish`] | `publish` overloads | xref:BloombergLP/ball/ObserverAdapter/releaseRecords.adoc[`releaseRecords`] [.small]#[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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#