ImqHeader C++ class
This abstract class encapsulates common features of the MQDLH data structure.
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 ImqCICS BridgeHeader 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 );
- Copies instance data 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, padded 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.
Parent topic: IBM MQ C++ classes