This struct provides a test enumeration type used by test messages.

Synopsis

Declared in <balb_testmessages.h>

struct Enumerated;

Enums

Name

Description

Unnamed enum

Enumerator count constant.

Value

Test enumeration values.

Static Member Functions

Name

Description

bdexStreamIn

Assign to the specified value 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, the value is valid, but its value is undefined. If the specified version is not supported, stream is marked invalid, but value is unaltered. Note that no version is read from stream. (See the package‐group‐level documentation for more information on bdex streaming of container types.)

bdexStreamOut

Write the specified value to the specified output stream and return a reference to the modifiable stream. Optionally specify an explicit version format; by default, the maximum supported version is written to stream and used as the format. If version is specified, that format is used but not written to stream. If version is not supported, stream is left unmodified. (See the package‐group‐level documentation for more information on bdex streaming of container types).

fromInt

Load into the specified result the enumerator matching the specified number. Return 0 on success, and a non‐zero value with no effect on result otherwise (i.e., number does not match any enumerator).

fromString

fromString 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.

print

Write to the specified stream the string representation of the specified enumeration value. Return a reference to the modifiable stream.

toString

Return the string representation exactly matching the enumerator name corresponding to the specified enumeration value.

Static Data Members

Name

Description

CLASS_NAME

Name of this class.

ENUMERATOR_INFO_ARRAY

Enumerator information array for this enumeration.

Derived Classes