BDE 4.14.0 Production release
Loading...
Searching...
No Matches
ball::ObserverAdapter Class Referenceabstract

#include <ball_observeradapter.h>

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

Public Member Functions

 ~ObserverAdapter () BSLS_KEYWORD_OVERRIDE
 Destroy this observer.
 
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 ()
 Destroy this observer.
 

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 ball_observeradapter

Constructor & Destructor Documentation

◆ ~ObserverAdapter()

ball::ObserverAdapter::~ObserverAdapter ( )

Member Function Documentation

◆ publish() [1/2]

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

Process the specified log record having the specified publishing context.

Reimplemented from ball::Observer.

◆ publish() [2/2]

void ball::ObserverAdapter::publish ( const Record record,
const Context context 
)
pure 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.

◆ releaseRecords()

void ball::ObserverAdapter::releaseRecords ( )
inlinevirtual

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: