BloombergLP::ball::Context::setAttributes

Set the attributes of this context object if they represent a valid context.

Synopsis

Declared in <ball_context.h>

int
setAttributes(
    Transmission::Cause transmissionCause,
    int recordIndex,
    int sequenceLength);

Description

Set the value of this context object to the specified transmissionCause, recordIndex, and sequenceLength values if transmissionCause, recordIndex, and sequenceLength represent a valid context. Return 0 on success, and a non-zero value (with no effect on this context object) otherwise.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
transmissionCausecause of transmission
recordIndexindex within the sequence
sequenceLengthnumber of records in the sequence