BDE 4.39.x Production Release
Loading...
Searching...
No Matches
baljsn::EncoderTestEmployee Class Reference

#include <baljsn_encoder_testtypes.h>

Public Types

enum  { ATTRIBUTE_ID_NAME = 0 , ATTRIBUTE_ID_HOME_ADDRESS = 1 , ATTRIBUTE_ID_AGE = 2 }
 
enum  { NUM_ATTRIBUTES = 3 }
 
enum  { ATTRIBUTE_INDEX_NAME = 0 , ATTRIBUTE_INDEX_HOME_ADDRESS = 1 , ATTRIBUTE_INDEX_AGE = 2 }
 

Public Member Functions

 EncoderTestEmployee (bslma::Allocator *basicAllocator=0)
 
 EncoderTestEmployee (const EncoderTestEmployee &original, bslma::Allocator *basicAllocator=0)
 
 ~EncoderTestEmployee ()
 
EncoderTestEmployeeoperator= (const EncoderTestEmployee &rhs)
 
void reset ()
 
template<typename t_MANIPULATOR >
int manipulateAttributes (t_MANIPULATOR &manipulator)
 
template<typename t_MANIPULATOR >
int manipulateAttribute (t_MANIPULATOR &manipulator, int id)
 
template<typename t_MANIPULATOR >
int manipulateAttribute (t_MANIPULATOR &manipulator, const char *name, int nameLength)
 
bsl::stringname ()
 
EncoderTestAddresshomeAddress ()
 
int & age ()
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 
template<typename t_ACCESSOR >
int accessAttributes (t_ACCESSOR &accessor) const
 
template<typename t_ACCESSOR >
int accessAttribute (t_ACCESSOR &accessor, int id) const
 
template<typename t_ACCESSOR >
int accessAttribute (t_ACCESSOR &accessor, const char *name, int nameLength) const
 
const bsl::stringname () const
 
const EncoderTestAddresshomeAddress () const
 
int age () const
 

Static Public Member Functions

static const bdlat_AttributeInfolookupAttributeInfo (int id)
 
static const bdlat_AttributeInfolookupAttributeInfo (const char *name, int nameLength)
 

Static Public Attributes

static const char CLASS_NAME []
 
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY []
 

Friends

bool operator== (const EncoderTestEmployee &lhs, const EncoderTestEmployee &rhs)
 
bool operator!= (const EncoderTestEmployee &lhs, const EncoderTestEmployee &rhs)
 
bsl::ostream & operator<< (bsl::ostream &stream, const EncoderTestEmployee &rhs)
 
template<typename t_HASH_ALGORITHM >
void hashAppend (t_HASH_ALGORITHM &hashAlg, const EncoderTestEmployee &object)
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ATTRIBUTE_ID_NAME 
ATTRIBUTE_ID_HOME_ADDRESS 
ATTRIBUTE_ID_AGE 

◆ anonymous enum

anonymous enum
Enumerator
NUM_ATTRIBUTES 

◆ anonymous enum

anonymous enum
Enumerator
ATTRIBUTE_INDEX_NAME 
ATTRIBUTE_INDEX_HOME_ADDRESS 
ATTRIBUTE_INDEX_AGE 

Constructor & Destructor Documentation

◆ EncoderTestEmployee() [1/2]

baljsn::EncoderTestEmployee::EncoderTestEmployee ( bslma::Allocator basicAllocator = 0)
explicit

◆ EncoderTestEmployee() [2/2]

baljsn::EncoderTestEmployee::EncoderTestEmployee ( const EncoderTestEmployee original,
bslma::Allocator basicAllocator = 0 
)

◆ ~EncoderTestEmployee()

baljsn::EncoderTestEmployee::~EncoderTestEmployee ( )

Member Function Documentation

◆ accessAttribute() [1/2]

template<typename t_ACCESSOR >
int baljsn::EncoderTestEmployee::accessAttribute ( t_ACCESSOR &  accessor,
const char *  name,
int  nameLength 
) const

◆ accessAttribute() [2/2]

template<typename t_ACCESSOR >
int baljsn::EncoderTestEmployee::accessAttribute ( t_ACCESSOR &  accessor,
int  id 
) const

◆ accessAttributes()

template<typename t_ACCESSOR >
int baljsn::EncoderTestEmployee::accessAttributes ( t_ACCESSOR &  accessor) const

◆ age() [1/2]

int & baljsn::EncoderTestEmployee::age ( )
inline

◆ age() [2/2]

int baljsn::EncoderTestEmployee::age ( ) const
inline

◆ homeAddress() [1/2]

EncoderTestAddress & baljsn::EncoderTestEmployee::homeAddress ( )
inline

◆ homeAddress() [2/2]

const EncoderTestAddress & baljsn::EncoderTestEmployee::homeAddress ( ) const
inline

◆ lookupAttributeInfo() [1/2]

static const bdlat_AttributeInfo * baljsn::EncoderTestEmployee::lookupAttributeInfo ( const char *  name,
int  nameLength 
)
static

◆ lookupAttributeInfo() [2/2]

static const bdlat_AttributeInfo * baljsn::EncoderTestEmployee::lookupAttributeInfo ( int  id)
static

◆ manipulateAttribute() [1/2]

template<typename t_MANIPULATOR >
int baljsn::EncoderTestEmployee::manipulateAttribute ( t_MANIPULATOR &  manipulator,
const char *  name,
int  nameLength 
)

◆ manipulateAttribute() [2/2]

template<typename t_MANIPULATOR >
int baljsn::EncoderTestEmployee::manipulateAttribute ( t_MANIPULATOR &  manipulator,
int  id 
)

◆ manipulateAttributes()

template<typename t_MANIPULATOR >
int baljsn::EncoderTestEmployee::manipulateAttributes ( t_MANIPULATOR &  manipulator)

◆ name() [1/2]

bsl::string & baljsn::EncoderTestEmployee::name ( )
inline

◆ name() [2/2]

const bsl::string & baljsn::EncoderTestEmployee::name ( ) const
inline

◆ operator=()

EncoderTestEmployee & baljsn::EncoderTestEmployee::operator= ( const EncoderTestEmployee rhs)

◆ print()

bsl::ostream & baljsn::EncoderTestEmployee::print ( bsl::ostream &  stream,
int  level = 0,
int  spacesPerLevel = 4 
) const

◆ reset()

void baljsn::EncoderTestEmployee::reset ( )

Friends And Related Symbol Documentation

◆ hashAppend

template<typename t_HASH_ALGORITHM >
void hashAppend ( t_HASH_ALGORITHM &  hashAlg,
const EncoderTestEmployee object 
)
friend

◆ operator!=

bool operator!= ( const EncoderTestEmployee lhs,
const EncoderTestEmployee rhs 
)
friend

◆ operator<<

bsl::ostream & operator<< ( bsl::ostream &  stream,
const EncoderTestEmployee rhs 
)
friend

◆ operator==

bool operator== ( const EncoderTestEmployee lhs,
const EncoderTestEmployee rhs 
)
friend

Member Data Documentation

◆ ATTRIBUTE_INFO_ARRAY

const bdlat_AttributeInfo baljsn::EncoderTestEmployee::ATTRIBUTE_INFO_ARRAY[]
static

◆ CLASS_NAME

const char baljsn::EncoderTestEmployee::CLASS_NAME[]
static

The documentation for this class was generated from the following file: