8#ifndef INCLUDED_BALL_CONTEXT
9#define INCLUDED_BALL_CONTEXT
244#include <balscm_version.h>
255#include <bsl_iosfwd.h>
257#ifndef BDE_OMIT_INTERNAL_DEPRECATED
258#if defined(BSLS_PLATFORM_CMP_MSVC) && defined(PASSTHROUGH)
300 int d_sequenceLength;
303 enum { k_SUCCESS = 0, k_FAILURE = -1 };
402 bsl::ostream&
print(bsl::ostream& stream,
404 int spacesPerLevel = 4)
const;
447: d_transmissionCause(transmissionCause)
448, d_recordIndex(recordIndex)
449, d_sequenceLength(sequenceLength)
455: d_transmissionCause(original.d_transmissionCause)
456, d_recordIndex(original.d_recordIndex)
457, d_sequenceLength(original.d_sequenceLength)
465 d_transmissionCause = rhs.d_transmissionCause;
466 d_recordIndex = rhs.d_recordIndex;
467 d_sequenceLength = rhs.d_sequenceLength;
496 d_recordIndex = index;
503 return d_transmissionCause;
509 return d_recordIndex;
515 return d_sequenceLength;
524 return lhs.d_transmissionCause == rhs.d_transmissionCause
525 && lhs.d_recordIndex == rhs.d_recordIndex
526 && lhs.d_sequenceLength == rhs.d_sequenceLength;
532 return !(lhs == rhs);
538 return rhs.print(stream, 0, -1);
Definition ball_context.h:295
Context & operator=(const Context &rhs)
Definition ball_context.h:463
BSLMF_NESTED_TRAIT_DECLARATION(Context, bslma::UsesBslmaAllocator)
Transmission::Cause transmissionCause() const
Return the transmission cause attribute of this context object.
Definition ball_context.h:501
int recordIndex() const
Return the record index attribute of this context object.
Definition ball_context.h:507
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
int sequenceLength() const
Return the sequence length attribute of this context object.
Definition ball_context.h:513
void setAttributesRaw(Transmission::Cause transmissionCause, int recordIndex, int sequenceLength)
Definition ball_context.h:472
~Context()=default
Destroy this object.
Context(bslma::Allocator *basicAllocator=0)
Definition ball_context.h:435
friend bool operator==(const Context &, const Context &)
int setAttributes(Transmission::Cause transmissionCause, int recordIndex, int sequenceLength)
Definition ball_context.h:482
void setRecordIndexRaw(int index)
Definition ball_context.h:494
static bool isValid(Transmission::Cause transmissionCause, int recordIndex, int sequenceLength)
Definition bslma_allocator.h:457
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition ball_administration.h:214
bsl::ostream & operator<<(bsl::ostream &output, const Attribute &attribute)
bool operator!=(const Attribute &lhs, const Attribute &rhs)
bool operator==(const Attribute &lhs, const Attribute &rhs)
Definition ball_transmission.h:208
Cause
Definition ball_transmission.h:213
Definition bslma_usesbslmaallocator.h:343