PDI 1.7.1

the PDI data interface

PDI::Record_datatype::Member Class Reference

A Member is one of the elements inside a Record_datatype. More...

Public Member Functions

 Member (size_t displacement, Datatype_sptr type, const std::string &name)
 Construct a new member.
 
 Member (const Member &o)
 Construct a new member by copy.
 
size_t displacement () const
 Access the offset or distance in byte from the Record_datatype start.
 
Datatype_sptr type () const
 Access the type of the contained member.
 
const std::string & name () const
 Access the name of this specific member.
 
bool operator== (const Member &rhs) const
 Tests another member for equality.
 
bool operator!= (const Member &rhs) const
 Tests another member for inequality.
 

Detailed Description

A Member is one of the elements inside a Record_datatype.

Constructor & Destructor Documentation

◆ Member() [1/2]

PDI::Record_datatype::Member::Member ( size_t  displacement,
Datatype_sptr  type,
const std::string &  name 
)

Construct a new member.

Parameters
displacementoffset or distance in byte from the Record_datatype start
typetype of the contained member
namename of this specific member

◆ Member() [2/2]

PDI::Record_datatype::Member::Member ( const Member o)

Construct a new member by copy.

Parameters
othe Member to copy

Member Function Documentation

◆ displacement()

size_t PDI::Record_datatype::Member::displacement ( ) const

Access the offset or distance in byte from the Record_datatype start.

Returns
the offset or distance in byte from the Record_datatype start

◆ type()

Datatype_sptr PDI::Record_datatype::Member::type ( ) const

Access the type of the contained member.

Returns
the type of the contained member

◆ name()

const std::string & PDI::Record_datatype::Member::name ( ) const

Access the name of this specific member.

Returns
the name of this specific member

◆ operator==()

bool PDI::Record_datatype::Member::operator== ( const Member rhs) const

Tests another member for equality.

Parameters
rhsthe other member to compare
Returns
true if the members are equal

◆ operator!=()

bool PDI::Record_datatype::Member::operator!= ( const Member rhs) const

Tests another member for inequality.

Parameters
rhsthe other member to compare
Returns
true if the members are different

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