8#ifndef INCLUDED_S_BALTST_MYENUMERATIONUNPRESERVEDWITHFALLBACK
9#define INCLUDED_S_BALTST_MYENUMERATIONUNPRESERVEDWITHFALLBACK
12BSLS_IDENT_RCSID(s_baltst_myenumerationunpreservedwithfallback_h,
"$Id$ $CSID$")
43#include <bslalg_typetraits.h>
57#include <bsl_iosfwd.h>
58#include <bsl_limits.h>
60#include <bsl_ostream.h>
61#include <bsl_string.h>
65namespace s_baltst {
class MyEnumerationUnpreservedWithFallbackRecord; }
133 static bsl::ostream&
print(bsl::ostream& stream,
Value value);
206#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
207 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
223#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
224 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
241 template <
typename t_MANIPULATOR>
250 template <
typename t_MANIPULATOR>
259 template <
typename t_MANIPULATOR>
281 bsl::ostream&
print(bsl::ostream& stream,
283 int spacesPerLevel = 4)
const;
291 template <
typename t_ACCESSOR>
299 template <
typename t_ACCESSOR>
308 template <
typename t_ACCESSOR>
311 int nameLength)
const;
357 return fromString(result,
string.c_str(),
static_cast<int>(
string.length()));
394template <
typename t_MANIPULATOR>
407template <
typename t_MANIPULATOR>
410 enum { NOT_FOUND = -1 };
421template <
typename t_MANIPULATOR>
423 t_MANIPULATOR& manipulator,
427 enum { NOT_FOUND = -1 };
431 if (0 == attributeInfo) {
445template <
typename t_ACCESSOR>
458template <
typename t_ACCESSOR>
461 enum { NOT_FOUND = -1 };
472template <
typename t_ACCESSOR>
474 t_ACCESSOR& accessor,
476 int nameLength)
const
478 enum { NOT_FOUND = -1 };
482 if (0 == attributeInfo) {
501 bsl::ostream& stream,
520 return !(lhs == rhs);
525 bsl::ostream& stream,
528 return rhs.
print(stream, 0, -1);
Definition bslstl_string.h:1281
Definition s_baltst_myenumerationunpreservedwithfallback.h:156
int accessAttribute(t_ACCESSOR &accessor, int id) const
Definition s_baltst_myenumerationunpreservedwithfallback.h:459
~MyEnumerationUnpreservedWithFallbackRecord()
Destroy this object.
MyEnumerationUnpreservedWithFallbackRecord()
MyEnumerationUnpreservedWithFallbackRecord & operator=(const MyEnumerationUnpreservedWithFallbackRecord &rhs)
Assign to this object the value of the specified rhs object.
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition s_baltst_myenumerationunpreservedwithfallback.h:178
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
int accessAttributes(t_ACCESSOR &accessor) const
Definition s_baltst_myenumerationunpreservedwithfallback.h:446
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
@ NUM_ATTRIBUTES
Definition s_baltst_myenumerationunpreservedwithfallback.h:168
MyEnumerationUnpreservedWithFallback::Value & value()
Definition s_baltst_myenumerationunpreservedwithfallback.h:439
int manipulateAttribute(t_MANIPULATOR &manipulator, int id)
Definition s_baltst_myenumerationunpreservedwithfallback.h:408
static const char CLASS_NAME[]
Definition s_baltst_myenumerationunpreservedwithfallback.h:176
MyEnumerationUnpreservedWithFallbackRecord(const MyEnumerationUnpreservedWithFallbackRecord &original)
int manipulateAttributes(t_MANIPULATOR &manipulator)
Definition s_baltst_myenumerationunpreservedwithfallback.h:395
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
@ ATTRIBUTE_INDEX_VALUE
Definition s_baltst_myenumerationunpreservedwithfallback.h:172
@ ATTRIBUTE_ID_VALUE
Definition s_baltst_myenumerationunpreservedwithfallback.h:164
#define BDLAT_DECL_ENUMERATION_WITH_FALLBACK_TRAITS(ClassName)
Definition bdlat_typetraits.h:305
#define BDLAT_DECL_SEQUENCE_WITH_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:275
#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
bool operator!=(const Address &lhs, const Address &rhs)
bool operator==(const Address &lhs, const Address &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, const Address &rhs)
Definition bdlat_attributeinfo.h:137
int d_id
Definition bdlat_attributeinfo.h:140
Definition bdlat_enumeratorinfo.h:97
Definition s_baltst_myenumerationunpreservedwithfallback.h:72
@ NUM_ENUMERATORS
Definition s_baltst_myenumerationunpreservedwithfallback.h:83
static int fromInt(Value *result, int number)
static bool isFallback(Value value)
Definition s_baltst_myenumerationunpreservedwithfallback.h:381
Value
Definition s_baltst_myenumerationunpreservedwithfallback.h:76
@ UNKNOWN
Definition s_baltst_myenumerationunpreservedwithfallback.h:77
@ VALUE2
Definition s_baltst_myenumerationunpreservedwithfallback.h:79
@ VALUE1
Definition s_baltst_myenumerationunpreservedwithfallback.h:78
static const char * toString(Value value)
static int makeFallback(Value *result)
Definition s_baltst_myenumerationunpreservedwithfallback.h:368
static bsl::ostream & print(bsl::ostream &stream, Value value)
Definition s_baltst_myenumerationunpreservedwithfallback.h:361
static bool hasFallback(Value)
Definition s_baltst_myenumerationunpreservedwithfallback.h:375
static const bdlat_EnumeratorInfo ENUMERATOR_INFO_ARRAY[]
Definition s_baltst_myenumerationunpreservedwithfallback.h:89
static const char CLASS_NAME[]
Definition s_baltst_myenumerationunpreservedwithfallback.h:87
static int fromString(Value *result, const char *string, int stringLength)