PDI 1.0.1

Data exchange made easy

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_uptr type, const std::string &name)
 Construct a new member. More...
 
 Member (const Member &o)
 Construct a new member by copy. More...
 
size_t displacement () const
 Access the offset or distance in byte from the Record_datatype start. More...
 
const Datatype & type () const
 Access the type of the contained member. More...
 
const std::string & name () const
 Access the name of this specific member. More...
 
bool operator== (const Member &rhs) const
 Tests another member for equality. More...
 
bool operator!= (const Member &rhs) const
 Tests another member for inequality. More...
 

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_uptr  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()

const Datatype& 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: