8#ifndef INCLUDED_S_BALTST_MYENUMERATIONWITHFALLBACK
9#define INCLUDED_S_BALTST_MYENUMERATIONWITHFALLBACK
43#include <bslalg_typetraits.h>
53#include <bsl_iosfwd.h>
54#include <bsl_limits.h>
56#include <bsl_ostream.h>
57#include <bsl_string.h>
128 static bsl::ostream&
print(bsl::ostream& stream,
Value value);
159 return fromString(result,
string.c_str(),
static_cast<int>(
string.length()));
175 bsl::ostream& stream,
Definition bslstl_string.h:1281
#define BDLAT_DECL_ENUMERATION_WITH_FALLBACK_TRAITS(ClassName)
Definition bdlat_typetraits.h:305
#define BSLS_IDENT_RCSID(tag, str)
Definition bsls_ident.h:260
#define BSLS_IDENT_PRAGMA_ONCE
Definition bsls_ident.h:310
Definition s_baltst_address.h:66
bsl::ostream & operator<<(bsl::ostream &stream, const Address &rhs)
Definition bdlat_enumeratorinfo.h:97
Definition s_baltst_myenumerationwithfallback.h:67
static int makeFallback(Value *result)
@ NUM_ENUMERATORS
Definition s_baltst_myenumerationwithfallback.h:78
static const bdlat_EnumeratorInfo ENUMERATOR_INFO_ARRAY[]
Definition s_baltst_myenumerationwithfallback.h:84
static int fromString(Value *result, const char *string, int stringLength)
static bool hasFallback(Value)
static const char CLASS_NAME[]
Definition s_baltst_myenumerationwithfallback.h:82
static bool isFallback(Value value)
static int fromInt(Value *result, int number)
static const char * toString(Value value)
static bsl::ostream & print(bsl::ostream &stream, Value value)
Definition s_baltst_myenumerationwithfallback.h:163
Value
Definition s_baltst_myenumerationwithfallback.h:71
@ VALUE2
Definition s_baltst_myenumerationwithfallback.h:73
@ UNKNOWN
Definition s_baltst_myenumerationwithfallback.h:74
@ VALUE1
Definition s_baltst_myenumerationwithfallback.h:72