Synopsis

Declared in <balb_testmessages.h>

class Choice4;

Enums

Name

Description

Unnamed enum

Selection identifier constants.

Unnamed enum

Selection count constant.

Unnamed enum

Selection index constants.

Member Functions

Name

Description

Choice4 [constructor]

Constructors

~Choice4 [destructor]

Destroy this object.

operator=

Assign to this object the value of the specified rhs object.

accessSelection

Invoke the specified accessor on the non‐modifiable selection, supplying accessor with the corresponding selection information structure. Return the value returned from the invocation of accessor if this object has a defined selection, and ‐1 otherwise.

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. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, this object is valid, but its value is undefined. If version is not supported, stream is marked invalid and this object is unaltered. Note that no version is read from stream. See the bslx package‐level documentation for more information on bdex streaming of value‐semantic types and containers.

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. If version is not supported, stream is unmodified. Note that version is not written to stream. See the bslx package‐level documentation for more information on bdex streaming of value‐semantic types and containers.

isSelection1Value

Return true if the value of this object is a "Selection1" value, and return false otherwise.

isSelection2Value

Return true if the value of this object is a "Selection2" value, and return false otherwise.

isUndefinedValue

Return true if the value of this object is undefined, and false otherwise.

makeSelection

makeSelection overloads

makeSelection1

makeSelection1 overloads

makeSelection2

makeSelection2 overloads

manipulateSelection

Invoke the specified manipulator on the address of the modifiable selection, supplying manipulator with the corresponding selection information structure. Return the value returned from the invocation of manipulator if this object has a defined selection, and ‐1 otherwise.

print

Format this object to the specified output stream at the optionally specified indentation level and return a reference to the modifiable stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of level * spacesPerLevel. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, suppress line breaks and format the entire output on one line. If stream is initially invalid, this operation has no effect. Note that a trailing newline is provided in multiline mode only.

reset

Reset this object to the default value (i.e., its value upon default construction).

selection1

selection1 overloads

selection2

selection2 overloads

selectionId

Return the id of the current selection if the selection is defined, and ‐1 otherwise.

selectionName

Return the symbolic name of the current selection of this object.

Static Member Functions

Name

Description

lookupSelectionInfo

lookupSelectionInfo overloads

maxSupportedBdexVersion

Return the most current bdex streaming version number supported by this class. See the bslx package‐level documentation for more information on bdex streaming of value‐semantic types and containers.

Data Members

Name

Description

d_selection1 [variant member]

Storage for the "Selection1" selection.

d_selection2 [variant member]

Storage for the "Selection2" selection.

Static Data Members

Name

Description

CLASS_NAME

Name of this class.

SELECTION_INFO_ARRAY

Selection information array for this choice.

Non-Member Functions

Name

Description

operator!=

Return true if the specified lhs and rhs objects do not have the same values, as determined by operator==, and false otherwise.

operator==

Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two Choice4 objects have the same value if either the selections in both objects have the same ids and the same values, or both selections are undefined.

Created with MrDocs