8#ifndef INCLUDED_S_BALTST_BASICRECORD
9#define INCLUDED_S_BALTST_BASICRECORD
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 BasicRecord; }
140#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
141 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
165#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
166 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
183 template<
class MANIPULATOR>
192 template<
class MANIPULATOR>
201 template<
class MANIPULATOR>
231 bsl::ostream&
print(bsl::ostream& stream,
233 int spacesPerLevel = 4)
const;
241 template<
class ACCESSOR>
249 template<
class ACCESSOR>
258 template<
class ACCESSOR>
261 int nameLength)
const;
316template <
class MANIPULATOR>
344template <
class MANIPULATOR>
347 enum { NOT_FOUND = -1 };
367template <
class MANIPULATOR>
369 MANIPULATOR& manipulator,
373 enum { NOT_FOUND = -1 };
377 if (0 == attributeInfo) {
409template <
class ACCESSOR>
437template <
class ACCESSOR>
440 enum { NOT_FOUND = -1 };
460template <
class ACCESSOR>
464 int nameLength)
const
466 enum { NOT_FOUND = -1 };
470 if (0 == attributeInfo) {
510 return lhs.
i1() == rhs.
i1()
511 && lhs.
i2() == rhs.
i2()
512 && lhs.
dt() == rhs.
dt()
513 && lhs.
s() == rhs.
s();
521 return !(lhs == rhs);
526 bsl::ostream& stream,
529 return rhs.
print(stream, 0, -1);
Definition bdlt_datetimetz.h:308
Definition bslstl_string.h:1281
Definition bslma_allocator.h:457
Definition s_baltst_basicrecord.h:78
static const char CLASS_NAME[]
Definition s_baltst_basicrecord.h:107
bdlt::DatetimeTz & dt()
Return a reference to the modifiable "Dt" attribute of this object.
Definition s_baltst_basicrecord.h:397
bsl::string & s()
Return a reference to the modifiable "S" attribute of this object.
Definition s_baltst_basicrecord.h:403
int manipulateAttribute(MANIPULATOR &manipulator, int id)
Definition s_baltst_basicrecord.h:345
BasicRecord(bslma::Allocator *basicAllocator=0)
BasicRecord & operator=(const BasicRecord &rhs)
Assign to this object the value of the specified rhs object.
@ ATTRIBUTE_INDEX_I2
Definition s_baltst_basicrecord.h:101
@ ATTRIBUTE_INDEX_S
Definition s_baltst_basicrecord.h:103
@ ATTRIBUTE_INDEX_DT
Definition s_baltst_basicrecord.h:102
@ ATTRIBUTE_INDEX_I1
Definition s_baltst_basicrecord.h:100
~BasicRecord()
Destroy this object.
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
int & i1()
Return a reference to the modifiable "I1" attribute of this object.
Definition s_baltst_basicrecord.h:385
int accessAttributes(ACCESSOR &accessor) const
Definition s_baltst_basicrecord.h:410
int accessAttribute(ACCESSOR &accessor, int id) const
Definition s_baltst_basicrecord.h:438
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition s_baltst_basicrecord.h:109
int & i2()
Return a reference to the modifiable "I2" attribute of this object.
Definition s_baltst_basicrecord.h:391
@ ATTRIBUTE_ID_I2
Definition s_baltst_basicrecord.h:90
@ ATTRIBUTE_ID_S
Definition s_baltst_basicrecord.h:92
@ ATTRIBUTE_ID_I1
Definition s_baltst_basicrecord.h:89
@ ATTRIBUTE_ID_DT
Definition s_baltst_basicrecord.h:91
int manipulateAttributes(MANIPULATOR &manipulator)
Definition s_baltst_basicrecord.h:317
@ NUM_ATTRIBUTES
Definition s_baltst_basicrecord.h:96
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
BasicRecord(const BasicRecord &original, bslma::Allocator *basicAllocator=0)
#define BDLAT_DECL_SEQUENCE_WITH_ALLOCATOR_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:282
#define BSLS_IDENT_RCSID(tag, str)
Definition bsls_ident.h:260
#define BSLS_IDENT_PRAGMA_ONCE
Definition bsls_ident.h:310
Definition balxml_encoderoptions.h:68
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