The native attribute interface currently consists of three different structure and function collections: MQeAttrBase, MQeFieldsAttr, and MQeMsgAttr. You can only create MQeFieldsAttr and MQeMsgAttr structures as MQeAttrBase is hidden. MQeMsgAttr is a subclass of MQeFieldsAttr and MQeFieldsAttr is a subclass of MQeAttrBase.
The MQeAttrBase consists of a set of methods which are applicable to all attribute structures. They are mainly getters and setters and polymorphic entry points to functions implemented in subclasses (eg., free, encodeData, and decodeData). Callers should use the polymorphic entry points to access subclass implemented methods.
The MQeFieldsAttr consists of functions which are appropriate when an attribute is to be attached to an MQeFields structure and its extension. It allows the caller to encode/decode an MQeFields item when it is dumped/restored.
The MQeMsgAttr is basically a different implementation of MQeMAttribute. Its behaviour is slightly different from the MQeMAttribute of the Java code base (which is to be modified). Check the MQeMsgAttr documentation for details.
Functions | |
MQERETURN | mqeAttrBase_free (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct) |
frees (polymorphic entry point) the MQeAttrBase handle hAttrBase | |
MQERETURN | mqeAttrBase_decodeData (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct, MQEBYTE *pBuffer, MQEINT32 *pBufLength, MQEBYTE *pData, MQEINT32 length) |
This function (polymorphic entry point) decrypts and/or decompresses the bytes referenced by pData of length length. | |
MQERETURN | mqeAttrBase_decodeDataToDynBuf (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct, MQeDynamicBufferHndl hOutput, MQEBYTE *pData, MQEINT32 length) |
This function (polymorphic entry point) decrypts and/or decompresses the bytes referenced by pData of length length into a dynamic buffer. | |
MQERETURN | mqeAttrBase_encodeData (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct, MQEBYTE *pBuffer, MQEINT32 *pBufLength, MQEBYTE *pData, MQEINT32 length) |
This function (polymorphic entry point) encrypts and/or compresses the bytes referenced by pData of length length. | |
MQERETURN | mqeAttrBase_encodeDataToDynBuf (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct, MQeDynamicBufferHndl hOutput, MQEBYTE *pData, MQEINT32 length) |
This function (polymorphic entry point) encrypts and/or compresses the bytes referenced by pData of length length into a dynamic buffer. | |
MQERETURN | mqeAttrBase_setKey (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct, MQeKeyHndl hKey) |
Set key for the MQeAttrBase pointed to by hAttrBase. It frees the original key, if there is one. | |
MQERETURN | mqeAttrBase_getKey (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct, MQeKeyHndl *phKey) |
Get the key from the MQeAttrBase pointed to by hAttrBase. | |
MQERETURN | mqeAttrBase_getAuthenticatorName (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct, MQeStringHndl *phAuthenticator) |
Get the name of the authenticator installed in the MQeAttrBase pointed to by hAttrBase. | |
MQERETURN | mqeAttrBase_getCryptorName (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct, MQeStringHndl *phCryptor) |
Get the name of the cryptor installed in the MQeAttrBase pointed to by hAttrBase. | |
MQERETURN | mqeAttrBase_getCompressorName (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct, MQeStringHndl *phCompressor) |
Get the name of the compressor installed in the MQeAttrBase pointed to by hAttrBase. | |
MQERETURN | mqeAttrBase_close (MQeAttrBaseHndl hAttrBase, MQeExceptBlock *pErrStruct) |
close hAttrBase. |
|
frees (polymorphic entry point) the MQeAttrBase handle hAttrBase
|
|
This function (polymorphic entry point) decrypts and/or decompresses the bytes referenced by pData of length length.
|
|
This function (polymorphic entry point) decrypts and/or decompresses the bytes referenced by pData of length length into a dynamic buffer.
|
|
This function (polymorphic entry point) encrypts and/or compresses the bytes referenced by pData of length length.
|
|
This function (polymorphic entry point) encrypts and/or compresses the bytes referenced by pData of length length into a dynamic buffer.
|
|
Set key for the MQeAttrBase pointed to by hAttrBase. It frees the original key, if there is one.
|
|
Get the key from the MQeAttrBase pointed to by hAttrBase.
|
|
Get the name of the authenticator installed in the MQeAttrBase pointed to by hAttrBase.
|
|
Get the name of the cryptor installed in the MQeAttrBase pointed to by hAttrBase.
|
|
Get the name of the compressor installed in the MQeAttrBase pointed to by hAttrBase.
|
|
close hAttrBase.
|