8#ifndef INCLUDED_S_BALTST_EMPLOYEE
9#define INCLUDED_S_BALTST_EMPLOYEE
43#include <bslalg_typetraits.h>
57#include <bsl_string.h>
61#include <bsl_iosfwd.h>
62#include <bsl_limits.h>
66namespace bslma {
class Allocator; }
68namespace s_baltst {
class Employee; }
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<
class MANIPULATOR>
186 template<
class MANIPULATOR>
195 template<
class MANIPULATOR>
224 bsl::ostream&
print(bsl::ostream& stream,
226 int spacesPerLevel = 4)
const;
234 template<
class ACCESSOR>
242 template<
class ACCESSOR>
251 template<
class ACCESSOR>
254 int nameLength)
const;
306template <
class MANIPULATOR>
329template <
class MANIPULATOR>
332 enum { NOT_FOUND = -1 };
349template <
class MANIPULATOR>
351 MANIPULATOR& manipulator,
355 enum { NOT_FOUND = -1 };
359 if (0 == attributeInfo) {
375 return d_homeAddress;
385template <
class ACCESSOR>
408template <
class ACCESSOR>
411 enum { NOT_FOUND = -1 };
428template <
class ACCESSOR>
432 int nameLength)
const
434 enum { NOT_FOUND = -1 };
438 if (0 == attributeInfo) {
454 return d_homeAddress;
474 && lhs.
age() == rhs.
age();
482 return !(lhs == rhs);
487 bsl::ostream& stream,
490 return rhs.
print(stream, 0, -1);
Definition bslstl_string.h:1281
Definition bslma_allocator.h:457
Definition s_baltst_address.h:73
Definition s_baltst_employee.h:75
int & age()
Return a reference to the modifiable "Age" attribute of this object.
Definition s_baltst_employee.h:379
Employee(const Employee &original, bslma::Allocator *basicAllocator=0)
static const char CLASS_NAME[]
Definition s_baltst_employee.h:101
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
@ ATTRIBUTE_ID_AGE
Definition s_baltst_employee.h:87
@ ATTRIBUTE_ID_NAME
Definition s_baltst_employee.h:85
@ ATTRIBUTE_ID_HOME_ADDRESS
Definition s_baltst_employee.h:86
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition s_baltst_employee.h:103
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
int manipulateAttributes(MANIPULATOR &manipulator)
Definition s_baltst_employee.h:307
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
Employee(bslma::Allocator *basicAllocator=0)
Employee & operator=(const Employee &rhs)
Assign to this object the value of the specified rhs object.
int manipulateAttribute(MANIPULATOR &manipulator, int id)
Definition s_baltst_employee.h:330
~Employee()
Destroy this object.
int accessAttributes(ACCESSOR &accessor) const
Definition s_baltst_employee.h:386
int accessAttribute(ACCESSOR &accessor, int id) const
Definition s_baltst_employee.h:409
s_baltst::Address & homeAddress()
Definition s_baltst_employee.h:373
bsl::string & name()
Definition s_baltst_employee.h:367
@ NUM_ATTRIBUTES
Definition s_baltst_employee.h:91
@ ATTRIBUTE_INDEX_AGE
Definition s_baltst_employee.h:97
@ ATTRIBUTE_INDEX_HOME_ADDRESS
Definition s_baltst_employee.h:96
@ ATTRIBUTE_INDEX_NAME
Definition s_baltst_employee.h:95
#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