[#BloombergLP-balb-Choice4] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::Choice4 :relfileprefix: ../../ :mrdocs: This class provides a test choice type used by test messages. == Synopsis Declared in `<balb_testmessages.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Choice4; ---- == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balb/Choice4/_04enum-09.adoc[`Unnamed enum`] | Selection identifier constants. | xref:BloombergLP/balb/Choice4/_04enum-07.adoc[`Unnamed enum`] | Selection count constant. | xref:BloombergLP/balb/Choice4/_04enum-06.adoc[`Unnamed enum`] | Selection index constants. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balb/Choice4/2constructor-06.adoc[`Choice4`] [.small]#[constructor]# | Constructors | xref:BloombergLP/balb/Choice4/2destructor.adoc[`~Choice4`] [.small]#[destructor]# | Destroy this object. | xref:BloombergLP/balb/Choice4/operator_assign.adoc[`operator=`] | Assign to this object the value of the specified `rhs` object. | xref:BloombergLP/balb/Choice4/accessSelection.adoc[`accessSelection`] | Invoke the specified `accessor` on the non‐modifiable selection, supplying `accessor` with the corresponding selection information structure. | xref:BloombergLP/balb/Choice4/bdexStreamIn.adoc[`bdexStreamIn`] | Assign to this object the value read from the specified input `stream` using the specified `version` format and return a reference to the modifiable `stream`. | xref:BloombergLP/balb/Choice4/bdexStreamOut.adoc[`bdexStreamOut`] | Write the value of this object to the specified output `stream` using the specified `version` format and return a reference to the modifiable `stream`. | xref:BloombergLP/balb/Choice4/isSelection1Value.adoc[`isSelection1Value`] | Return `true` if the value of this object is a "Selection1" value, and return `false` otherwise. | xref:BloombergLP/balb/Choice4/isSelection2Value.adoc[`isSelection2Value`] | Return `true` if the value of this object is a "Selection2" value, and return `false` otherwise. | xref:BloombergLP/balb/Choice4/isUndefinedValue.adoc[`isUndefinedValue`] | Return `true` if the value of this object is undefined, and `false` otherwise. | xref:BloombergLP/balb/Choice4/makeSelection-07.adoc[`makeSelection`] | `makeSelection` overloads | xref:BloombergLP/balb/Choice4/makeSelection1-05.adoc[`makeSelection1`] | `makeSelection1` overloads | xref:BloombergLP/balb/Choice4/makeSelection2-05.adoc[`makeSelection2`] | `makeSelection2` overloads | xref:BloombergLP/balb/Choice4/manipulateSelection.adoc[`manipulateSelection`] | Invoke the specified `manipulator` on the address of the modifiable selection, supplying `manipulator` with the corresponding selection information structure. | xref:BloombergLP/balb/Choice4/print.adoc[`print`] | Format this object to the specified output `stream` at the optionally specified indentation `level` and return a reference to the modifiable `stream`. | xref:BloombergLP/balb/Choice4/reset.adoc[`reset`] | Reset this object to the default value (i.e., its value upon default construction). | xref:BloombergLP/balb/Choice4/selection1-08.adoc[`selection1`] | `selection1` overloads | xref:BloombergLP/balb/Choice4/selection2-02.adoc[`selection2`] | `selection2` overloads | xref:BloombergLP/balb/Choice4/selectionId.adoc[`selectionId`] | Return the id of the current selection if the selection is defined, and ‐1 otherwise. | xref:BloombergLP/balb/Choice4/selectionName.adoc[`selectionName`] | Return the symbolic name of the current selection of this object. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balb/Choice4/lookupSelectionInfo-0a.adoc[`lookupSelectionInfo`] | `lookupSelectionInfo` overloads | xref:BloombergLP/balb/Choice4/maxSupportedBdexVersion.adoc[`maxSupportedBdexVersion`] | Return the most current `bdex` streaming version number supported by this class. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balb/Choice4/d_selection1.adoc[`d_selection1`] [.small]#[variant member]# | Storage for the "Selection1" selection. | xref:BloombergLP/balb/Choice4/d_selection2.adoc[`d_selection2`] [.small]#[variant member]# | Storage for the "Selection2" selection. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balb/Choice4/CLASS_NAME.adoc[`CLASS_NAME`] | Name of this class. | xref:BloombergLP/balb/Choice4/SELECTION_INFO_ARRAY.adoc[`SELECTION_INFO_ARRAY`] | Selection information array for this choice. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balb/operator_not_eq-0a1.adoc[`operator!=`] | Return `true` if the specified `lhs` and `rhs` objects do not have the same values, as determined by `operator==`, and `false` otherwise. | xref:BloombergLP/balb/operator_eq-076.adoc[`operator==`] | Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#