BloombergLP::baljsn::EncoderTestChoiceWithAllCategoriesEnumeration

Test type EncoderTestChoiceWithAllCategoriesEnumeration used by baljsn encoder tests.

Synopsis

Declared in <baljsn_encoder_testtypes.h>

struct EncoderTestChoiceWithAllCategoriesEnumeration;

Enums

NameDescription
Unnamed enum Number of enumerators in Value.
Value Enumerator values for this test enumeration.

Static Member Functions

NameDescription
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
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

NameDescription
CLASS_NAME Name of this class.
ENUMERATOR_INFO_ARRAY Array of enumerator metadata for this type.

Friends

NameDescription
BloombergLP::baljsn::operator<<Format the specified 'rhs' to the specified output 'stream' and return a reference to the modifiable 'stream'.