ImqHeader

Figure 12. ImqHeader class

A Booch class diagram showing the ImqHeader class and its parent class, ImqItem.

This abstract class encapsulates common features of the MQDLH data structure (see Table 13).

Other relevant classes

ImqCICSBridgeHeader (see ImqCICSBridgeHeader)

ImqDeadLetterHeader (see ImqDeadLetterHeader)

ImqIMSBridgeHeader (see ImqIMSBridgeHeader)

ImqItem (see ImqItem)

ImqMessage (see ImqMessage)

ImqReferenceHeader (see ImqReferenceHeader)

ImqString (see ImqString)

ImqWorkHeader (see ImqWorkHeader)

Object attributes

character set
The original coded character set identifier. Initially MQCCSI_Q_MGR.

encoding
The original encoding. Initially MQENC_NATIVE.

format
The original format. Initially MQFMT_NONE.

header flags
The initial values are:

Zero for objects of the ImqDeadLetterHeader class

MQIIH_NONE for objects of the ImqIMSBridgeHeader class

MQRMHF_LAST for objects of the ImqReferenceHeader class

MQCIH_NONE for objects of the ImqCICSBridgeHeader class

MQWIH_NONE for objects of the ImqWorkHeader class

Constructors

ImqHeader( );
The default constructor.

ImqHeader( const ImqHeader & header );
The copy constructor.

Object methods (public)

void operator = ( const ImqHeader & header );
Instance data is copied from header, replacing the existing instance data.

virtual MQLONG characterSet( ) const ;
Returns the character set.

virtual void setCharacterSet( const MQLONG ccsid = MQCCSI_Q_MGR );
Sets the character set.

virtual MQLONG encoding( ) const ;
Returns the encoding.

virtual void setEncoding( const MQLONG encoding = MQENC_NATIVE );
Sets the encoding.

virtual ImqString format( ) const ;
Returns a copy of the format, including trailing blanks.

virtual void setFormat( const char * name = 0 );
Sets the format, padding to 8 characters with trailing blanks.

virtual MQLONG headerFlags( ) const ;
Returns the header flags.

virtual void setHeaderFlags( const MQLONG flags = 0 );
Sets the header flags.


© IBM Corporation 2001. All Rights Reserved