Object methods (public)

void operator = ( const ImqItem & item );

Copies instance data from item, replacing the existing instance data.

virtual ImqBoolean copyOut( ImqMessage & msg ) = 0 ;

Writes this object as the next item in an outgoing message buffer, appending it to any existing items. If the write operation is successful, increases the ImqCache data length. This method returns TRUE if successful.

Override this method to work with a specific subclass.

virtual ImqBoolean pasteIn( ImqMessage & msg ) = 0 ;

Reads this object destructively from the incoming message buffer. The read is destructive in that the ImqCache data pointer is moved on. However, the buffer content remains the same, so data can be re-read by resetting the ImqCache data pointer.

The (sub)class of this object must be consistent with the structure id found next in the message buffer of the msg object.

The encoding of the msg object should be MQENC_NATIVE. It is recommended that messages be retrieved with the ImqMessage encoding set to MQENC_NATIVE, and with the ImqGetMessageOptions options including MQGMO_CONVERT.

If the read operation is successful, the ImqCache data length is reduced. This method returns TRUE if successful.

Override this method to work with a specific subclass.