8#ifndef INCLUDED_BALL_TESTOBSERVER
9#define INCLUDED_BALL_TESTOBSERVER
173#include <balscm_version.h>
193#include <bsl_iosfwd.h>
194#include <bsl_memory.h>
221 typedef bsls::AtomicOperations::AtomicTypes::Int AtomicInt;
224 static AtomicInt s_count;
227 bsl::ostream *d_stream_p;
273#ifndef BDE_OMIT_INTERNAL_DEPRECATED
370TestObserver::TestObserver(bsl::ostream *stream,
373, d_record(basicAllocator)
374, d_context(basicAllocator)
375, d_id(
AtomicOps::incrementIntNvAcqRel(&s_count))
383#ifndef BDE_OMIT_INTERNAL_DEPRECATED
385TestObserver::TestObserver(bsl::ostream& stream,
388, d_record(basicAllocator)
389, d_context(basicAllocator)
390, d_id(
AtomicOps::incrementIntNvAcqRel(&s_count))
410 d_verboseFlag = flagValue;
446 return d_numReleases;
Definition ball_context.h:295
Definition ball_observer.h:235
Definition ball_record.h:178
Definition ball_testobserver.h:217
const Context & lastPublishedContext() const
Definition ball_testobserver.h:422
~TestObserver() BSLS_KEYWORD_OVERRIDE
Destroy this test observer.
int numPublishedRecords() const
Definition ball_testobserver.h:436
BSLMF_NESTED_TRAIT_DECLARATION(TestObserver, bslma::UsesBslmaAllocator)
void releaseRecords() BSLS_KEYWORD_OVERRIDE
Definition ball_testobserver.h:400
const Record & lastPublishedRecord() const
Definition ball_testobserver.h:429
int id() const
Definition ball_testobserver.h:415
void setVerbose(int flagValue)
Definition ball_testobserver.h:407
int numReleases() const
Definition ball_testobserver.h:443
void publish(const Record &record, const Context &context) BSLS_KEYWORD_OVERRIDE
static int numInstances()
Definition ball_testobserver.h:363
Definition bslma_allocator.h:457
Definition bslmt_lockguard.h:234
Definition bslmt_mutex.h:315
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:653
Definition ball_administration.h:214
Definition bdlb_printmethods.h:283
Definition bslma_usesbslmaallocator.h:343
Definition bsls_atomicoperations.h:834
static int getIntRelaxed(AtomicTypes::Int const *atomicInt)
Definition bsls_atomicoperations.h:1534