8#ifndef INCLUDED_S_BALTST_MYSIMPLECONTENT
9#define INCLUDED_S_BALTST_MYSIMPLECONTENT
43#include <bslalg_typetraits.h>
59#include <bsl_string.h>
61#include <bsl_iosfwd.h>
62#include <bsl_limits.h>
66namespace bslma {
class Allocator; }
68namespace s_baltst {
class MySimpleContent; }
134#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
135 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
159#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
160 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
177 template <
typename t_MANIPULATOR>
186 template <
typename t_MANIPULATOR>
195 template <
typename t_MANIPULATOR>
226 bsl::ostream&
print(bsl::ostream& stream,
228 int spacesPerLevel = 4)
const;
236 template <
typename t_ACCESSOR>
244 template <
typename t_ACCESSOR>
253 template <
typename t_ACCESSOR>
256 int nameLength)
const;
278 return lhs.attribute1() == rhs.attribute1() &&
279 lhs.attribute2() == rhs.attribute2() &&
280 lhs.theContent() == rhs.theContent();
287 return !(lhs == rhs);
295 return rhs.print(stream, 0, -1);
319template <
typename t_MANIPULATOR>
342template <
typename t_MANIPULATOR>
345 enum { NOT_FOUND = -1 };
362template <
typename t_MANIPULATOR>
364 t_MANIPULATOR& manipulator,
368 enum { NOT_FOUND = -1 };
372 if (0 == attributeInfo) {
398template <
typename t_ACCESSOR>
421template <
typename t_ACCESSOR>
424 enum { NOT_FOUND = -1 };
441template <
typename t_ACCESSOR>
443 t_ACCESSOR& accessor,
445 int nameLength)
const
447 enum { NOT_FOUND = -1 };
451 if (0 == attributeInfo) {
Definition bdlb_nullablevalue.h:262
Definition bslstl_string.h:1252
Definition bslma_allocator.h:545
Definition s_baltst_mysimplecontent.h:75
static const char CLASS_NAME[]
Definition s_baltst_mysimplecontent.h:101
bdlb::NullableValue< bool > & attribute1()
Definition s_baltst_mysimplecontent.h:380
~MySimpleContent()
Destroy this object.
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
friend bsl::ostream & operator<<(bsl::ostream &stream, const MySimpleContent &rhs)
Definition s_baltst_mysimplecontent.h:292
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
bsl::string & theContent()
Definition s_baltst_mysimplecontent.h:392
friend bool operator!=(const MySimpleContent &lhs, const MySimpleContent &rhs)
Returns !(lhs == rhs)
Definition s_baltst_mysimplecontent.h:284
int manipulateAttributes(t_MANIPULATOR &manipulator)
Definition s_baltst_mysimplecontent.h:320
int accessAttributes(t_ACCESSOR &accessor) const
Definition s_baltst_mysimplecontent.h:399
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
@ NUM_ATTRIBUTES
Definition s_baltst_mysimplecontent.h:91
friend bool operator==(const MySimpleContent &lhs, const MySimpleContent &rhs)
Definition s_baltst_mysimplecontent.h:275
@ ATTRIBUTE_ID_ATTRIBUTE2
Definition s_baltst_mysimplecontent.h:86
@ ATTRIBUTE_ID_THE_CONTENT
Definition s_baltst_mysimplecontent.h:87
@ ATTRIBUTE_ID_ATTRIBUTE1
Definition s_baltst_mysimplecontent.h:85
MySimpleContent & operator=(const MySimpleContent &rhs)
Assign to this object the value of the specified rhs object.
int accessAttribute(t_ACCESSOR &accessor, int id) const
Definition s_baltst_mysimplecontent.h:422
bdlb::NullableValue< bsl::string > & attribute2()
Definition s_baltst_mysimplecontent.h:386
@ ATTRIBUTE_INDEX_ATTRIBUTE1
Definition s_baltst_mysimplecontent.h:95
@ ATTRIBUTE_INDEX_THE_CONTENT
Definition s_baltst_mysimplecontent.h:97
@ ATTRIBUTE_INDEX_ATTRIBUTE2
Definition s_baltst_mysimplecontent.h:96
MySimpleContent(bslma::Allocator *basicAllocator=0)
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition s_baltst_mysimplecontent.h:103
int manipulateAttribute(t_MANIPULATOR &manipulator, int id)
Definition s_baltst_mysimplecontent.h:343
MySimpleContent(const MySimpleContent &original, bslma::Allocator *basicAllocator=0)
#define BDLAT_DECL_SEQUENCE_WITH_ALLOCATOR_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:301
#define BSLS_IDENT_RCSID(tag, str)
BSLS_IDENT_RCSID() - insert ident str (specific to platform/compiler)
Definition bsls_ident.h:244
#define BSLS_IDENT_PRAGMA_ONCE
BSLS_IDENT_PRAGMA_ONCE - macro to avoid multiple inclusion
Definition bsls_ident.h:263
Definition baljsn_encoder_testtypes.h:76
Definition s_baltst_address.h:66
Definition bdlat_attributeinfo.h:139
int d_id
Definition bdlat_attributeinfo.h:142
Definition bdlat_typetraits.h:146