8#ifndef INCLUDED_BALL_CONTEXT
9#define INCLUDED_BALL_CONTEXT
245#include <balscm_version.h>
256#include <bsl_iosfwd.h>
258#ifndef BDE_OMIT_INTERNAL_DEPRECATED
259#if defined(BSLS_PLATFORM_CMP_MSVC) && defined(PASSTHROUGH)
302 int d_sequenceLength;
305 enum { k_SUCCESS = 0, k_FAILURE = -1 };
410 bsl::ostream&
print(bsl::ostream& stream,
412 int spacesPerLevel = 4)
const;
455: d_transmissionCause(transmissionCause)
456, d_recordIndex(recordIndex)
457, d_sequenceLength(sequenceLength)
463: d_transmissionCause(original.d_transmissionCause)
464, d_recordIndex(original.d_recordIndex)
465, d_sequenceLength(original.d_sequenceLength)
473 d_transmissionCause = rhs.d_transmissionCause;
474 d_recordIndex = rhs.d_recordIndex;
475 d_sequenceLength = rhs.d_sequenceLength;
504 d_recordIndex = index;
511 return d_transmissionCause;
517 return d_recordIndex;
523 return d_sequenceLength;
532 return lhs.d_transmissionCause == rhs.d_transmissionCause
533 && lhs.d_recordIndex == rhs.d_recordIndex
534 && lhs.d_sequenceLength == rhs.d_sequenceLength;
546 return rhs.print(stream, 0, -1);
Definition ball_context.h:297
Context & operator=(const Context &rhs)
Definition ball_context.h:471
BSLMF_NESTED_TRAIT_DECLARATION(Context, bslma::UsesBslmaAllocator)
Transmission::Cause transmissionCause() const
Return the transmission cause attribute of this context object.
Definition ball_context.h:509
int recordIndex() const
Return the record index attribute of this context object.
Definition ball_context.h:515
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:521
void setAttributesRaw(Transmission::Cause transmissionCause, int recordIndex, int sequenceLength)
Definition ball_context.h:480
~Context()=default
Destroy this object.
Context(bslma::Allocator *basicAllocator=0)
Definition ball_context.h:443
friend bool operator==(const Context &, const Context &)
int setAttributes(Transmission::Cause transmissionCause, int recordIndex, int sequenceLength)
Definition ball_context.h:490
void setRecordIndexRaw(int index)
Definition ball_context.h:502
static bool isValid(Transmission::Cause transmissionCause, int recordIndex, int sequenceLength)
Definition bslma_allocator.h:545
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
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)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917
Definition ball_transmission.h:210
Cause
Definition ball_transmission.h:215
Definition bslma_usesbslmaallocator.h:344