#include <MamaMsg.h>
Name | |
---|---|
~MamaMsg() | |
MamaMsg(void ) | |
MamaMsg(const MamaMsg & mm) | |
void | create(void ) |
MAMADeprecated(“createForPayload has been deprecated, use dynamic loading instead!” ) const | |
void | createForPayloadBridge(mamaPayloadBridge payloadBridge) |
void | createFromBuffer(const void * buffer, size_t bufferLength) |
void | copy(const MamaMsg & rhs) |
MamaMsg * | getTempCopy() |
void | applyMsg(const MamaMsg & msg) |
void | clear(void ) |
size_t | getNumFields(void ) const |
size_t | getByteSize(void ) const |
bool | getBoolean(const char * name, mama_fid_t fid) const |
bool | getBoolean(const MamaFieldDescriptor * fieldDesc) const |
char | getChar(const char * name, mama_fid_t fid) const |
char | getChar(const MamaFieldDescriptor * fieldDesc) const |
mama_i8_t | getI8(const char * name, mama_fid_t fid) const |
mama_i8_t | getI8(const MamaFieldDescriptor * fieldDesc) const |
mama_u8_t | getU8(const char * name, mama_fid_t fid) const |
mama_u8_t | getU8(const MamaFieldDescriptor * fieldDesc) const |
mama_i16_t | getI16(const char * name, mama_fid_t fid) const |
mama_i16_t | getI16(const MamaFieldDescriptor * fieldDesc) const |
mama_u16_t | getU16(const char * name, mama_fid_t fid) const |
mama_u16_t | getU16(const MamaFieldDescriptor * fieldDesc) const |
mama_i32_t | getI32(const char * name, mama_fid_t fid) const |
mama_i32_t | getI32(const MamaFieldDescriptor * fieldDesc) const |
mama_u32_t | getU32(const char * name, mama_fid_t fid) const |
mama_u32_t | getU32(const MamaFieldDescriptor * fieldDesc) const |
mama_i64_t | getI64(const char * name, mama_fid_t fid) const |
mama_i64_t | getI64(const MamaFieldDescriptor * fieldDesc) const |
mama_u64_t | getU64(const char * name, mama_fid_t fid) const |
mama_u64_t | getU64(const MamaFieldDescriptor * fieldDesc) const |
mama_f32_t | getF32(const char * name, mama_fid_t fid) const |
mama_f32_t | getF32(const MamaFieldDescriptor * fieldDesc) const |
mama_f64_t | getF64(const char * name, mama_fid_t fid) const |
mama_f64_t | getF64(const MamaFieldDescriptor * fieldDesc) const |
const char * | getString(const char * name, mama_fid_t fid) const |
const char * | getString(const MamaFieldDescriptor * fieldDesc) const |
const void * | getOpaque(const char * name, mama_fid_t fid, size_t & size) const |
const void * | getOpaque(const MamaFieldDescriptor * fieldDesc, size_t & size) const |
void | getDateTime(const char * name, mama_fid_t fid, MamaDateTime & result) const |
void | getDateTime(const MamaFieldDescriptor * fieldDesc, MamaDateTime & result) const |
void | getPrice(const char * name, mama_fid_t fid, MamaPrice & result) const |
void | getPrice(const MamaFieldDescriptor * fieldDesc, MamaPrice & result) const |
const MamaMsg * | getMsg(const char * name, mama_fid_t fid) const |
const MamaMsg * | getMsg(const MamaFieldDescriptor * fieldDesc) const |
const char * | getVectorChar(const char * name, mama_fid_t fid, size_t & resultLen) const |
const char * | getVectorChar(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const mama_i8_t * | getVectorI8(const char * name, mama_fid_t fid, size_t & resultLen) const |
const mama_i8_t * | getVectorI8(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const mama_u8_t * | getVectorU8(const char * name, mama_fid_t fid, size_t & resultLen) const |
const mama_u8_t * | getVectorU8(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const mama_i16_t * | getVectorI16(const char * name, mama_fid_t fid, size_t & resultLen) const |
const mama_i16_t * | getVectorI16(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const mama_u16_t * | getVectorU16(const char * name, mama_fid_t fid, size_t & resultLen) const |
const mama_u16_t * | getVectorU16(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const mama_i32_t * | getVectorI32(const char * name, mama_fid_t fid, size_t & resultLen) const |
const mama_i32_t * | getVectorI32(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const mama_u32_t * | getVectorU32(const char * name, mama_fid_t fid, size_t & resultLen) const |
const mama_u32_t * | getVectorU32(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const mama_i64_t * | getVectorI64(const char * name, mama_fid_t fid, size_t & resultLen) const |
const mama_i64_t * | getVectorI64(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const mama_u64_t * | getVectorU64(const char * name, mama_fid_t fid, size_t & resultLen) const |
const mama_u64_t * | getVectorU64(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const mama_f32_t * | getVectorF32(const char * name, mama_fid_t fid, size_t & resultLen) const |
const mama_f32_t * | getVectorF32(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const mama_f64_t * | getVectorF64(const char * name, mama_fid_t fid, size_t & resultLen) const |
const mama_f64_t * | getVectorF64(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const MamaMsg ** | getVectorMsg(const char * name, mama_fid_t fid, size_t & resultLen) const |
const MamaMsg ** | getVectorMsg(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
const char ** | getVectorString(const char * name, mama_fid_t fid, size_t & resultLen) const |
const char ** | getVectorString(const MamaFieldDescriptor * fieldDesc, size_t & resultLen) const |
bool | tryBoolean(const char * name, mama_fid_t fid, bool & result) const |
bool | tryBoolean(const MamaFieldDescriptor * field, bool & result) const |
bool | tryChar(const char * name, mama_fid_t fid, char & result) const |
bool | tryChar(const MamaFieldDescriptor * field, char & result) const |
bool | tryI8(const char * name, mama_fid_t fid, mama_i8_t & result) const |
bool | tryI8(const MamaFieldDescriptor * field, mama_i8_t & result) const |
bool | tryU8(const char * name, mama_fid_t fid, mama_u8_t & result) const |
bool | tryU8(const MamaFieldDescriptor * field, mama_u8_t & result) const |
bool | tryI16(const char * name, mama_fid_t fid, mama_i16_t & result) const |
bool | tryI16(const MamaFieldDescriptor * field, mama_i16_t & result) const |
bool | tryU16(const char * name, mama_fid_t fid, mama_u16_t & result) const |
bool | tryU16(const MamaFieldDescriptor * field, mama_u16_t & result) const |
bool | tryI32(const char * name, mama_fid_t fid, mama_i32_t & result) const |
bool | tryI32(const MamaFieldDescriptor * field, mama_i32_t & result) const |
bool | tryU32(const char * name, mama_fid_t fid, mama_u32_t & result) const |
bool | tryU32(const MamaFieldDescriptor * field, mama_u32_t & result) const |
bool | tryI64(const char * name, mama_fid_t fid, mama_i64_t & result) const |
bool | tryI64(const MamaFieldDescriptor * field, mama_i64_t & result) const |
bool | tryU64(const char * name, mama_fid_t fid, mama_u64_t & result) const |
bool | tryU64(const MamaFieldDescriptor * field, mama_u64_t & result) const |
bool | tryF32(const char * name, mama_fid_t fid, mama_f32_t & result) const |
bool | tryF32(const MamaFieldDescriptor * field, mama_f32_t & result) const |
bool | tryF64(const char * name, mama_fid_t fid, mama_f64_t & result) const |
bool | tryF64(const MamaFieldDescriptor * field, mama_f64_t & result) const |
bool | tryString(const char * name, mama_fid_t fid, const char *& result) const |
bool | tryString(const MamaFieldDescriptor * field, const char *& result) const |
bool | tryDateTime(const char * name, mama_fid_t fid, MamaDateTime & result) const |
bool | tryDateTime(const MamaFieldDescriptor * field, MamaDateTime & result) const |
bool | tryPrice(const char * name, mama_fid_t fid, MamaPrice & result) const |
bool | tryPrice(const MamaFieldDescriptor * field, MamaPrice & result) const |
bool | tryMsg(const char * name, mama_fid_t fid, const MamaMsg *& result) const |
bool | tryMsg(const MamaFieldDescriptor * field, const MamaMsg *& result) const |
bool | tryOpaque(const char * name, mama_fid_t fid, const void *& result, size_t & size) const |
bool | tryOpaque(const MamaFieldDescriptor * field, const void *& result, size_t & size) const |
bool | tryVectorChar(const char * name, mama_fid_t fid, const char *& result, size_t & resultLen) const |
bool | tryVectorChar(const MamaFieldDescriptor * fieldDesc, const char *& result, size_t & resultLen) const |
bool | tryVectorI8(const char * name, mama_fid_t fid, const mama_i8_t *& result, size_t & resultLen) const |
bool | tryVectorI8(const MamaFieldDescriptor * fieldDesc, const mama_i8_t *& result, size_t & resultLen) const |
bool | tryVectorU8(const char * name, mama_fid_t fid, const mama_u8_t *& result, size_t & resultLen) const |
bool | tryVectorU8(const MamaFieldDescriptor * fieldDesc, const mama_u8_t *& result, size_t & resultLen) const |
bool | tryVectorI16(const char * name, mama_fid_t fid, const mama_i16_t *& result, size_t & resultLen) const |
bool | tryVectorI16(const MamaFieldDescriptor * fieldDesc, const mama_i16_t *& result, size_t & resultLen) const |
bool | tryVectorU16(const char * name, mama_fid_t fid, const mama_u16_t *& result, size_t & resultLen) const |
bool | tryVectorU16(const MamaFieldDescriptor * fieldDesc, const mama_u16_t *& result, size_t & resultLen) const |
bool | tryVectorI32(const char * name, mama_fid_t fid, const mama_i32_t *& result, size_t & resultLen) const |
bool | tryVectorI32(const MamaFieldDescriptor * fieldDesc, const mama_i32_t *& result, size_t & resultLen) const |
bool | tryVectorU32(const char * name, mama_fid_t fid, const mama_u32_t *& result, size_t & resultLen) const |
bool | tryVectorU32(const MamaFieldDescriptor * fieldDesc, const mama_u32_t *& result, size_t & resultLen) const |
bool | tryVectorI64(const char * name, mama_fid_t fid, const mama_i64_t *& result, size_t & resultLen) const |
bool | tryVectorI64(const MamaFieldDescriptor * fieldDesc, const mama_i64_t *& result, size_t & resultLen) const |
bool | tryVectorU64(const char * name, mama_fid_t fid, const mama_u64_t *& result, size_t & resultLen) const |
bool | tryVectorU64(const MamaFieldDescriptor * fieldDesc, const mama_u64_t *& result, size_t & resultLen) const |
bool | tryVectorF32(const char * name, mama_fid_t fid, const mama_f32_t *& result, size_t & resultLen) const |
bool | tryVectorF32(const MamaFieldDescriptor * fieldDesc, const mama_f32_t *& result, size_t & resultLen) const |
bool | tryVectorF64(const char * name, mama_fid_t fid, const mama_f64_t *& result, size_t & resultLen) const |
bool | tryVectorF64(const MamaFieldDescriptor * fieldDesc, const mama_f64_t *& result, size_t & resultLen) const |
bool | tryVectorString(const char * name, mama_fid_t fid, const char **& result, size_t & resultLen) const |
bool | tryVectorString(const MamaFieldDescriptor * fieldDesc, const char **& result, size_t & resultLen) const |
bool | tryVectorMsg(const char * name, mama_fid_t fid, const MamaMsg **& result, size_t & resultLen) const |
bool | tryVectorMsg(const MamaFieldDescriptor * fieldDesc, const MamaMsg **& result, size_t & resultLen) const |
void | addBoolean(const char * name, mama_fid_t fid, bool value) |
void | addBoolean(const MamaFieldDescriptor * fieldDesc, bool value) |
void | addChar(const char * name, mama_fid_t fid, char value) |
void | addChar(const MamaFieldDescriptor * fieldDesc, char value) |
void | addI8(const char * name, mama_fid_t fid, mama_i8_t value) |
void | addI8(const MamaFieldDescriptor * fieldDesc, mama_i8_t value) |
void | addI16(const char * name, mama_fid_t fid, mama_i16_t value) |
void | addI16(const MamaFieldDescriptor * fieldDesc, mama_i16_t value) |
void | addI32(const char * name, mama_fid_t fid, mama_i32_t value) |
void | addI32(const MamaFieldDescriptor * fieldDesc, mama_i32_t value) |
void | addI64(const char * name, mama_fid_t fid, mama_i64_t value) |
void | addI64(const MamaFieldDescriptor * fieldDesc, mama_i64_t value) |
void | addU8(const char * name, mama_fid_t fid, mama_u8_t value) |
void | addU8(const MamaFieldDescriptor * fieldDesc, mama_u8_t value) |
void | addU16(const char * name, mama_fid_t fid, mama_u16_t value) |
void | addU16(const MamaFieldDescriptor * fieldDesc, mama_u16_t value) |
void | addU32(const char * name, mama_fid_t fid, mama_u32_t value) |
void | addU32(const MamaFieldDescriptor * fieldDesc, mama_u32_t value) |
void | addU64(const char * name, mama_fid_t fid, mama_u64_t value) |
void | addU64(const MamaFieldDescriptor * fieldDesc, mama_u64_t value) |
void | addF32(const char * name, mama_fid_t fid, mama_f32_t value) |
void | addF32(const MamaFieldDescriptor * fieldDesc, mama_f32_t value) |
void | addF64(const char * name, mama_fid_t fid, mama_f64_t value) |
void | addF64(const MamaFieldDescriptor * fieldDesc, mama_f64_t value) |
void | addString(const char * name, mama_fid_t fid, const char * value) |
void | addString(const MamaFieldDescriptor * fieldDesc, const char * value) |
void | addDateTime(const char * name, mama_fid_t fid, const MamaDateTime & value) |
void | addDateTime(const MamaFieldDescriptor * fieldDesc, const MamaDateTime & value) |
void | addPrice(const char * name, mama_fid_t fid, const MamaPrice & value) |
void | addPrice(const MamaFieldDescriptor * fieldDesc, const MamaPrice & value) |
void | addOpaque(const char * name, mama_fid_t fid, const void * value, size_t size) |
void | addOpaque(const MamaFieldDescriptor * fieldDesc, const void * value, size_t size) |
void | addMsg(const char * name, mama_fid_t fid, MamaMsg * value) |
void | addMsg(const MamaFieldDescriptor * fieldDesc, MamaMsg * value) |
void | addVectorChar(const char * name, mama_fid_t fid, const char vectorValues[], size_t vectorLen) |
void | addVectorChar(const MamaFieldDescriptor * fieldDesc, const char vectorValues[], size_t vectorLen) |
void | addVectorI8(const char * name, mama_fid_t fid, const mama_i8_t vectorValues[], size_t vectorLen) |
void | addVectorI8(const MamaFieldDescriptor * fieldDesc, const mama_i8_t vectorValues[], size_t vectorLen) |
void | addVectorU8(const char * name, mama_fid_t fid, const mama_u8_t vectorValues[], size_t vectorLen) |
void | addVectorU8(const MamaFieldDescriptor * fieldDesc, const mama_u8_t vectorValues[], size_t vectorLen) |
void | addVectorI16(const char * name, mama_fid_t fid, const mama_i16_t vectorValues[], size_t vectorLen) |
void | addVectorI16(const MamaFieldDescriptor * fieldDesc, const mama_i16_t vectorValues[], size_t vectorLen) |
void | addVectorU16(const char * name, mama_fid_t fid, const mama_u16_t vectorValues[], size_t vectorLen) |
void | addVectorU16(const MamaFieldDescriptor * fieldDesc, const mama_u16_t vectorValues[], size_t vectorLen) |
void | addVectorI32(const char * name, mama_fid_t fid, const mama_i32_t vectorValues[], size_t vectorLen) |
void | addVectorI32(const MamaFieldDescriptor * fieldDesc, const mama_i32_t vectorValues[], size_t vectorLen) |
void | addVectorU32(const char * name, mama_fid_t fid, const mama_u32_t vectorValues[], size_t vectorLen) |
void | addVectorU32(const MamaFieldDescriptor * fieldDesc, const mama_u32_t vectorValues[], size_t vectorLen) |
void | addVectorI64(const char * name, mama_fid_t fid, const mama_i64_t vectorValues[], size_t vectorLen) |
void | addVectorI64(const MamaFieldDescriptor * fieldDesc, const mama_i64_t vectorValues[], size_t vectorLen) |
void | addVectorU64(const char * name, mama_fid_t fid, const mama_u64_t vectorValues[], size_t vectorLen) |
void | addVectorU64(const MamaFieldDescriptor * fieldDesc, const mama_u64_t vectorValues[], size_t vectorLen) |
void | addVectorF32(const char * name, mama_fid_t fid, const mama_f32_t vectorValues[], size_t vectorLen) |
void | addVectorF32(const MamaFieldDescriptor * fieldDesc, const mama_f32_t vectorValues[], size_t vectorLen) |
void | addVectorF64(const char * name, mama_fid_t fid, const mama_f64_t vectorValues[], size_t vectorLen) |
void | addVectorF64(const MamaFieldDescriptor * fieldDesc, const mama_f64_t vectorValues[], size_t vectorLen) |
void | addVectorString(const char * name, mama_fid_t fid, const char * vectorValues[], size_t vectorLen) |
void | addVectorString(const MamaFieldDescriptor * fieldDesc, const char * vectorValues[], size_t vectorLen) |
void | addVectorMsg(const char * name, mama_fid_t fid, MamaMsg * vectorValues[], size_t vectorLen) |
void | addVectorMsg(const MamaFieldDescriptor * fieldDesc, MamaMsg * vectorValues[], size_t vectorLen) |
void | updateBoolean(const char * name, mama_fid_t fid, bool value) |
void | updateBoolean(const MamaFieldDescriptor * fieldDesc, bool value) |
void | updateChar(const char * name, mama_fid_t fid, const char value) |
void | updateChar(const MamaFieldDescriptor * fieldDesc, const char value) |
void | updateI8(const char * name, mama_fid_t fid, const mama_i8_t value) |
void | updateI8(const MamaFieldDescriptor * fieldDesc, const mama_i8_t value) |
void | updateU8(const char * name, mama_fid_t fid, const mama_u8_t value) |
void | updateU8(const MamaFieldDescriptor * fieldDesc, const mama_u8_t value) |
void | updateI16(const char * name, mama_fid_t fid, const mama_i16_t value) |
void | updateI16(const MamaFieldDescriptor * fieldDesc, const mama_i16_t value) |
void | updateU16(const char * name, mama_fid_t fid, const mama_u16_t value) |
void | updateU16(const MamaFieldDescriptor * fieldDesc, const mama_u16_t value) |
void | updateI32(const char * name, mama_fid_t fid, const mama_i32_t value) |
void | updateI32(const MamaFieldDescriptor * fieldDesc, const mama_i32_t value) |
void | updateU32(const char * name, mama_fid_t fid, const mama_u32_t value) |
void | updateU32(const MamaFieldDescriptor * fieldDesc, const mama_u32_t value) |
void | updateI64(const char * name, mama_fid_t fid, const mama_i64_t value) |
void | updateI64(const MamaFieldDescriptor * fieldDesc, const mama_i64_t value) |
void | updateU64(const char * name, mama_fid_t fid, const mama_u64_t value) |
void | updateU64(const MamaFieldDescriptor * fieldDesc, const mama_u64_t value) |
void | updateF32(const char * name, mama_fid_t fid, const mama_f32_t value) |
void | updateF32(const MamaFieldDescriptor * fieldDesc, const mama_f32_t value) |
void | updateF64(const char * name, mama_fid_t fid, const mama_f64_t value) |
void | updateF64(const MamaFieldDescriptor * fieldDesc, const mama_f64_t value) |
void | updateString(const char * name, mama_fid_t fid, const char * value) |
void | updateString(const MamaFieldDescriptor * fieldDesc, const char * value) |
void | updateOpaque(const char * name, mama_fid_t fid, const void * value, size_t size) |
void | updateOpaque(const MamaFieldDescriptor * fieldDesc, const void * value, size_t size) |
void | updateDateTime(const char * name, mama_fid_t fid, const MamaDateTime & value) |
void | updateDateTime(const MamaFieldDescriptor * fieldDesc, const MamaDateTime & value) |
void | updatePrice(const char * name, mama_fid_t fid, const MamaPrice & value) |
void | updatePrice(const MamaFieldDescriptor * fieldDesc, const MamaPrice & value) |
mamaMsgType | getType(void ) const |
const char * | getMsgTypeName(void ) const |
mamaMsgStatus | getStatus(void ) const |
const char * | getMsgStatusString(void ) const |
void | iterateFields(MamaMsgFieldIterator & iterator, const MamaDictionary * dictionary, void * closure) const |
const char * | toString() const |
const char * | toJsonString() const |
const char * | toJsonString(const MamaDictionary * dictionary) const |
const char * | toNormalizedString() const |
void | getFieldAsString(const char * name, mama_fid_t fid, char * result, size_t maxResultLen) const |
void | getFieldAsString(const MamaFieldDescriptor * fieldDesc, char * result, size_t maxResultLen) const |
MamaMsgField * | getField(const char * name, mama_fid_t fid) const |
MamaMsgField * | getField(const MamaFieldDescriptor * fieldDesc) const |
bool | tryField(const char * name, mama_fid_t fid) const |
bool | tryField(const MamaFieldDescriptor * fieldDesc) const |
bool | tryField(const char * name, mama_fid_t fid, MamaMsgField * result) const |
bool | tryField(const MamaFieldDescriptor * fieldDesc, MamaMsgField * result) const |
bool | tryFieldAsString(const char * name, mama_fid_t fid, char * result, size_t maxResultLen) const |
bool | tryFieldAsString(const MamaFieldDescriptor * fieldDesc, char * result, size_t maxResultLen) const |
void | getByteBuffer(const void *& buffer, size_t & bufferLength) const |
MamaMsg * | detach(void ) |
bool | isFromInbox(void ) const |
mama_seqnum_t | getSeqNum(void ) const |
bool | getIsDefinitelyDuplicate(void ) const |
bool | getIsPossiblyDuplicate(void ) const |
bool | getIsPossiblyDelayed(void ) const |
bool | getIsDefinitelyDelayed(void ) const |
bool | getIsOutOfSequence(void ) const |
bool | setNewBuffer(void * buffer, mama_size_t size) |
void * | getNativeHandle(void ) const |
void | createFromMsg(mamaMsg msg, bool destroyMsg =false) const |
void | setMsg(mamaMsg msg) |
const mamaMsg & | getUnderlyingMsg(void ) const |
mamaMsg | getUnderlyingMsg(void ) |
MAMAIgnoreDeprecatedOpen mamaPayloadType | getPayloadType(void ) const |
MAMAIgnoreDeprecatedClose void * | getNativeMsg(void ) |
MamaMsgField & | begin(MamaMsgIterator & theIterator) const |
mamaMsgReply | getReplyHandle(void ) const |
void | destroyReplyHandle(mamaMsgReply replyHandle) |
class Wombat::MamaMsg;
Author: Michael Schonberg
MAMA message representation.
Field identifiers must be greater than 0. A field identifier of 0 indicates that there is no unique FID and multiple fields with the same name may have FID == 0.
Field lookup proceeds in the following manner similar to TIBRV.
getShort
for an integer field with a value greater than Short.MAX_VALUE
might return Short.MIN_VALUE
. It is also valid to throw a ClassCastException
or other appropriate RuntimeException
.Since some message implementations may not natively support all data types, the behaviour may vary substantially. In creating and accessing messages the API’s assume that the underlying values are stored in the smallest possible fields, and accesses them accordingly. For this reason the minimal requirement is that the methods for accessing and creating fields support the full range of values appropriate for their type. How they deal with larger values should be irrelevant.
~MamaMsg()
MamaMsg(
void
)
MamaMsg(
const MamaMsg & mm
)
void create(
void
)
Create the actual underlying wire format message. This method will create a an underlying message native to the middleware being used. Tibrv: RV message LBM: Wombat Message TCP: Wombat Message
MAMADeprecated(
"createForPayload has been deprecated,
use dynamic loading instead!"
) const
Parameters:
Deprecated:
This has been deprecated in favor of dynamic loading.
Create a mamaMsg.
void createForPayloadBridge(
mamaPayloadBridge payloadBridge
)
Parameters:
Create a mamaMsg.
void createFromBuffer(
const void * buffer,
size_t bufferLength
)
Parameters:
Return: mama_status The outcome of the operation
Create a MamaMsg from the provided byte buffer. The application is responsible for destroying the message. In all cases the buffer is copied as the message is constructed.
Any transport differences are detailed below.
rv: The bufferLength parameter is not required.
Note: wombatmsg format is not currently supported on tibrv transports. At the moment a buffer containing the wire format for each of these transports is expected to be passed to the function.
void copy(
const MamaMsg & rhs
)
Copy the message from another, severing all links to the original message
MamaMsg * getTempCopy()
Return: The message copy.
Get a temporary copy of the mamaMsg so to be able to modify the content. If the message can be modified directly, the message itself is returned. If the message cannot be modified then only one copy is performed the first time this method is called and then the same copy is returned when this method is called again. The copy has the same life time of the original message.
void applyMsg(
const MamaMsg & msg
)
void clear(
void
)
Clear the message. All fields are removed.
size_t getNumFields(
void
) const
Return: The number of fields in the message.
Returns the total number of fields in the message. Sub-messages count as a single field.
size_t getByteSize(
void
) const
Return: The number of bytes in the message
Get the message size in bytes. Supported with the following transports: tibrv LBT
bool getBoolean(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The integer value.
Get a boolean field.
bool getBoolean(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The integer value.
Get a boolean field.
char getChar(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The integer value.
Get a char field.
char getChar(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The integer value.
Get a char field.
mama_i8_t getI8(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The integer value.
Get an I8 field.
mama_i8_t getI8(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The integer value.
Get a I8 field.
mama_u8_t getU8(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The integer value.
Get a U8 field.
mama_u8_t getU8(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The integer value.
Get a U8 field.
mama_i16_t getI16(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The integer value.
Get an I16 field.
mama_i16_t getI16(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The integer value.
Get an I16 field.
mama_u16_t getU16(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The integer value.
Get a U16 field.
mama_u16_t getU16(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The integer value.
Get an U16 field.
mama_i32_t getI32(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The integer value.
Get an I32 field.
mama_i32_t getI32(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The integer value.
Get a I32 field.
mama_u32_t getU32(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The integer value.
Get a U32 field.
mama_u32_t getU32(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The integer value.
Get a U32 field.
mama_i64_t getI64(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The field value as a long.
Get a I64 field.
mama_i64_t getI64(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The integer value.
Get a I64 field.
mama_u64_t getU64(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The integer value.
Get a U64 field.
mama_u64_t getU64(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The integer value.
Get a U64 field.
mama_f32_t getF32(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The double value.
Get a f32 field.
mama_f32_t getF32(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The double value.
Get a f32 field.
mama_f64_t getF64(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The double value.
Get a f64 field.
mama_f64_t getF64(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The double value.
Get a f64 field.
const char * getString(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The string value. The return value points to the string inside the mamaMsg object. This piece of memory is owned by the object and does not need to be explicitly freed.
Get a const char* field
const char * getString(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The string value. The return value points to the string inside the mamaMsg object. This piece of memory is owned by the object and does not need to be explicitly freed.
Get a const char* field
const void * getOpaque(
const char * name,
mama_fid_t fid,
size_t & size
) const
Parameters:
Return: the string value.
Get an opaque field.
const void * getOpaque(
const MamaFieldDescriptor * fieldDesc,
size_t & size
) const
Parameters:
Return: The double value.
Get a const char* field.
void getDateTime(
const char * name,
mama_fid_t fid,
MamaDateTime & result
) const
Parameters:
Get a MamaDateTime field.
void getDateTime(
const MamaFieldDescriptor * fieldDesc,
MamaDateTime & result
) const
Parameters:
Get a MamaDateTime field.
void getPrice(
const char * name,
mama_fid_t fid,
MamaPrice & result
) const
Parameters:
Get a MamaPrice field.
void getPrice(
const MamaFieldDescriptor * fieldDesc,
MamaPrice & result
) const
Parameters:
Get a MamaPrice field.
const MamaMsg * getMsg(
const char * name,
mama_fid_t fid
) const
Parameters:
Return: The submessage.
Get a submessage field.
const MamaMsg * getMsg(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Return: The vector.
Get a submessage field.
const char * getVectorChar(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of characters. (Note: prefer using string fields or opaque fields over a vector of characters.)
const char * getVectorChar(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of characters. (Note: prefer using string fields or opaque fields over a vector of characters.)
const mama_i8_t * getVectorI8(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of signed 8-bit integers.
const mama_i8_t * getVectorI8(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of signed 8-bit integers. or opaque fields over a vector of characters.)
const mama_u8_t * getVectorU8(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of unsigned 8-bit integers.
const mama_u8_t * getVectorU8(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of unsigned 8-bit integers. or opaque fields over a vector of characters.)
const mama_i16_t * getVectorI16(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of signed 16-bit integers.
const mama_i16_t * getVectorI16(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of signed 16-bit integers. or opaque fields over a vector of characters.)
const mama_u16_t * getVectorU16(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of unsigned 16-bit integers.
const mama_u16_t * getVectorU16(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of unsigned 16-bit integers. or opaque fields over a vector of characters.)
const mama_i32_t * getVectorI32(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of signed 32-bit integers.
const mama_i32_t * getVectorI32(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of signed 32-bit integers. or opaque fields over a vector of characters.)
const mama_u32_t * getVectorU32(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of unsigned 32-bit integers.
const mama_u32_t * getVectorU32(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of unsigned 32-bit integers. or opaque fields over a vector of characters.)
const mama_i64_t * getVectorI64(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of signed 64-bit integers.
const mama_i64_t * getVectorI64(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of signed 64-bit integers. or opaque fields over a vector of characters.)
const mama_u64_t * getVectorU64(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of unsigned 64-bit integers.
const mama_u64_t * getVectorU64(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of unsigned 64-bit integers. or opaque fields over a vector of characters.)
const mama_f32_t * getVectorF32(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of 32-bit floating point numbers.
const mama_f32_t * getVectorF32(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of 32-bit floating point numbers. or opaque fields over a vector of characters.)
const mama_f64_t * getVectorF64(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of 64-bit floating point numbers.
const mama_f64_t * getVectorF64(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of 64-bit floating point numbers. or opaque fields over a vector of characters.)
const MamaMsg ** getVectorMsg(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of submessages field.
const MamaMsg ** getVectorMsg(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of submessages.
const char ** getVectorString(
const char * name,
mama_fid_t fid,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of strings field. The vector is deleted with the message and overwritten by subsequent calls to getVectorString.
const char ** getVectorString(
const MamaFieldDescriptor * fieldDesc,
size_t & resultLen
) const
Parameters:
Return: The vector.
Get a vector of submessages. The vector is deleted with the message and overwritten by subsequent calls to getVectorString.
bool tryBoolean(
const char * name,
mama_fid_t fid,
bool & result
) const
Parameters:
Return: Whether the field was present.
Try to get a boolean field.
bool tryBoolean(
const MamaFieldDescriptor * field,
bool & result
) const
Parameters:
Return: Whether the field was present.
Try to get a boolean field.
bool tryChar(
const char * name,
mama_fid_t fid,
char & result
) const
Parameters:
Return: Whether the field was present.
Try to get a char field.
bool tryChar(
const MamaFieldDescriptor * field,
char & result
) const
Parameters:
Return: Whether the field was present.
Try to get a char field.
bool tryI8(
const char * name,
mama_fid_t fid,
mama_i8_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get an unsigned 8 bit integer field.
bool tryI8(
const MamaFieldDescriptor * field,
mama_i8_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get an unsigned 8 bit field.
bool tryU8(
const char * name,
mama_fid_t fid,
mama_u8_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get an unsigned 8 bit integer field.
bool tryU8(
const MamaFieldDescriptor * field,
mama_u8_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get an unsigned 8 bit field.
bool tryI16(
const char * name,
mama_fid_t fid,
mama_i16_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get a signed 16 bit integer field.
bool tryI16(
const MamaFieldDescriptor * field,
mama_i16_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get a signed 16 bit field.
bool tryU16(
const char * name,
mama_fid_t fid,
mama_u16_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get an unsigned 16 bit integer field.
bool tryU16(
const MamaFieldDescriptor * field,
mama_u16_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get an unsigned 16 bit field.
bool tryI32(
const char * name,
mama_fid_t fid,
mama_i32_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get a signed 32 bit integer field.
bool tryI32(
const MamaFieldDescriptor * field,
mama_i32_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get a signed 32 bit integer field.
bool tryU32(
const char * name,
mama_fid_t fid,
mama_u32_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get an unsigned 32 bit integer field.
bool tryU32(
const MamaFieldDescriptor * field,
mama_u32_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get an unsigned 32 bit integer field.
bool tryI64(
const char * name,
mama_fid_t fid,
mama_i64_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get a signed 64 bit field.
bool tryI64(
const MamaFieldDescriptor * field,
mama_i64_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get a signed 64 bit field.
bool tryU64(
const char * name,
mama_fid_t fid,
mama_u64_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get an unsigned 64 bit field.
bool tryU64(
const MamaFieldDescriptor * field,
mama_u64_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get an unsigned 64 bit field.
bool tryF32(
const char * name,
mama_fid_t fid,
mama_f32_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get a f32 field.
bool tryF32(
const MamaFieldDescriptor * field,
mama_f32_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get a f32 field.
bool tryF64(
const char * name,
mama_fid_t fid,
mama_f64_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get a f64 field.
bool tryF64(
const MamaFieldDescriptor * field,
mama_f64_t & result
) const
Parameters:
Return: Whether the field was present.
Try to get a f64 field.
bool tryString(
const char * name,
mama_fid_t fid,
const char *& result
) const
Parameters:
Return: Whether the field was present.
Try to get a string field.
bool tryString(
const MamaFieldDescriptor * field,
const char *& result
) const
Parameters:
Return: Whether the field was present.
Try to get a string field.
bool tryDateTime(
const char * name,
mama_fid_t fid,
MamaDateTime & result
) const
Parameters:
Return: Whether the field was present.
Try to get a date/time field.
bool tryDateTime(
const MamaFieldDescriptor * field,
MamaDateTime & result
) const
Parameters:
Return: Whether the field was present.
Try to get a date/time field.
bool tryPrice(
const char * name,
mama_fid_t fid,
MamaPrice & result
) const
Parameters:
Return: Whether the field was present.
Try to get a price field.
bool tryPrice(
const MamaFieldDescriptor * field,
MamaPrice & result
) const
Parameters:
Return: Whether the field was present.
Try to get a price field.
bool tryMsg(
const char * name,
mama_fid_t fid,
const MamaMsg *& result
) const
Parameters:
Return: Whether the field was present.
Try to get a submessage field.
bool tryMsg(
const MamaFieldDescriptor * field,
const MamaMsg *& result
) const
Parameters:
Return: Whether the field was present.
Try to get a submessage field.
bool tryOpaque(
const char * name,
mama_fid_t fid,
const void *& result,
size_t & size
) const
Parameters:
Return: Whether the field was present.
Try to get a string field.
bool tryOpaque(
const MamaFieldDescriptor * field,
const void *& result,
size_t & size
) const
Parameters:
Return: Whether the field was present.
Try to get a string field.
bool tryVectorChar(
const char * name,
mama_fid_t fid,
const char *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of characters. (Note: prefer using string fields or opaque fields over a vector of characters.)
bool tryVectorChar(
const MamaFieldDescriptor * fieldDesc,
const char *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of characters. (Note: prefer using string fields or opaque fields over a vector of characters.)
bool tryVectorI8(
const char * name,
mama_fid_t fid,
const mama_i8_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of signed 8-bit integers.
bool tryVectorI8(
const MamaFieldDescriptor * fieldDesc,
const mama_i8_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of signed 8-bit integers. or opaque fields over a vector of characters.)
bool tryVectorU8(
const char * name,
mama_fid_t fid,
const mama_u8_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of unsigned 8-bit integers.
bool tryVectorU8(
const MamaFieldDescriptor * fieldDesc,
const mama_u8_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of unsigned 8-bit integers. or opaque fields over a vector of characters.)
bool tryVectorI16(
const char * name,
mama_fid_t fid,
const mama_i16_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of signed 16-bit integers.
bool tryVectorI16(
const MamaFieldDescriptor * fieldDesc,
const mama_i16_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of signed 16-bit integers. or opaque fields over a vector of characters.)
bool tryVectorU16(
const char * name,
mama_fid_t fid,
const mama_u16_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of unsigned 16-bit integers.
bool tryVectorU16(
const MamaFieldDescriptor * fieldDesc,
const mama_u16_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of unsigned 16-bit integers. or opaque fields over a vector of characters.)
bool tryVectorI32(
const char * name,
mama_fid_t fid,
const mama_i32_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of signed 32-bit integers.
bool tryVectorI32(
const MamaFieldDescriptor * fieldDesc,
const mama_i32_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of signed 32-bit integers. or opaque fields over a vector of characters.)
bool tryVectorU32(
const char * name,
mama_fid_t fid,
const mama_u32_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of unsigned 32-bit integers.
bool tryVectorU32(
const MamaFieldDescriptor * fieldDesc,
const mama_u32_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of unsigned 32-bit integers. or opaque fields over a vector of characters.)
bool tryVectorI64(
const char * name,
mama_fid_t fid,
const mama_i64_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of signed 64-bit integers.
bool tryVectorI64(
const MamaFieldDescriptor * fieldDesc,
const mama_i64_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of signed 64-bit integers. or opaque fields over a vector of characters.)
bool tryVectorU64(
const char * name,
mama_fid_t fid,
const mama_u64_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of unsigned 64-bit integers.
bool tryVectorU64(
const MamaFieldDescriptor * fieldDesc,
const mama_u64_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of unsigned 64-bit integers. or opaque fields over a vector of characters.)
bool tryVectorF32(
const char * name,
mama_fid_t fid,
const mama_f32_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of 32-bit floating point numbers.
bool tryVectorF32(
const MamaFieldDescriptor * fieldDesc,
const mama_f32_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of 32-bit floating point numbers. or opaque fields over a vector of characters.)
bool tryVectorF64(
const char * name,
mama_fid_t fid,
const mama_f64_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of 64-bit floating point numbers.
bool tryVectorF64(
const MamaFieldDescriptor * fieldDesc,
const mama_f64_t *& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of 64-bit floating point numbers. or opaque fields over a vector of characters.)
bool tryVectorString(
const char * name,
mama_fid_t fid,
const char **& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of strings.
bool tryVectorString(
const MamaFieldDescriptor * fieldDesc,
const char **& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of strings
bool tryVectorMsg(
const char * name,
mama_fid_t fid,
const MamaMsg **& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of submessages field.
bool tryVectorMsg(
const MamaFieldDescriptor * fieldDesc,
const MamaMsg **& result,
size_t & resultLen
) const
Parameters:
Return: Whether the field was present.
Try to get a vector of submessages.
void addBoolean(
const char * name,
mama_fid_t fid,
bool value
)
Parameters:
Add a new boolean field.
void addBoolean(
const MamaFieldDescriptor * fieldDesc,
bool value
)
Parameters:
Add a new boolean field.
void addChar(
const char * name,
mama_fid_t fid,
char value
)
Parameters:
Add a new char field.
void addChar(
const MamaFieldDescriptor * fieldDesc,
char value
)
Parameters:
Add a new char field.
void addI8(
const char * name,
mama_fid_t fid,
mama_i8_t value
)
Parameters:
Add a new I8 field.
void addI8(
const MamaFieldDescriptor * fieldDesc,
mama_i8_t value
)
Parameters:
Add a new I8 field.
void addI16(
const char * name,
mama_fid_t fid,
mama_i16_t value
)
Parameters:
Add a new I16 field.
void addI16(
const MamaFieldDescriptor * fieldDesc,
mama_i16_t value
)
Parameters:
Add a new I16 field.
void addI32(
const char * name,
mama_fid_t fid,
mama_i32_t value
)
Parameters:
Add a new I32 field.
void addI32(
const MamaFieldDescriptor * fieldDesc,
mama_i32_t value
)
Parameters:
Add a new I32 field.
void addI64(
const char * name,
mama_fid_t fid,
mama_i64_t value
)
Parameters:
Add a new I64 field.
void addI64(
const MamaFieldDescriptor * fieldDesc,
mama_i64_t value
)
Parameters:
Add a new I64 field.
void addU8(
const char * name,
mama_fid_t fid,
mama_u8_t value
)
Parameters:
Add a new byte (U8) const field.
void addU8(
const MamaFieldDescriptor * fieldDesc,
mama_u8_t value
)
Parameters:
Add a new U8 field.
void addU16(
const char * name,
mama_fid_t fid,
mama_u16_t value
)
Parameters:
Add a new short (U16) const field.
void addU16(
const MamaFieldDescriptor * fieldDesc,
mama_u16_t value
)
Parameters:
Add a new U16 field.
void addU32(
const char * name,
mama_fid_t fid,
mama_u32_t value
)
Parameters:
Add a new int (U32) const field.
void addU32(
const MamaFieldDescriptor * fieldDesc,
mama_u32_t value
)
Parameters:
Add a new U32 field.
void addU64(
const char * name,
mama_fid_t fid,
mama_u64_t value
)
Parameters:
Add a new int (U64) const field.
void addU64(
const MamaFieldDescriptor * fieldDesc,
mama_u64_t value
)
Parameters:
Add a new U64 field.
void addF32(
const char * name,
mama_fid_t fid,
mama_f32_t value
)
Parameters:
Add a new F32 field.
void addF32(
const MamaFieldDescriptor * fieldDesc,
mama_f32_t value
)
Parameters:
Add a new F32 field.
void addF64(
const char * name,
mama_fid_t fid,
mama_f64_t value
)
Parameters:
Add a new F64 field.
void addF64(
const MamaFieldDescriptor * fieldDesc,
mama_f64_t value
)
Parameters:
Add a new F64 field.
void addString(
const char * name,
mama_fid_t fid,
const char * value
)
Parameters:
Add a const char* field.
void addString(
const MamaFieldDescriptor * fieldDesc,
const char * value
)
Parameters:
Add a new const char* field.
void addDateTime(
const char * name,
mama_fid_t fid,
const MamaDateTime & value
)
Parameters:
Add a date/time field.
void addDateTime(
const MamaFieldDescriptor * fieldDesc,
const MamaDateTime & value
)
Parameters:
Add a new date/time field.
void addPrice(
const char * name,
mama_fid_t fid,
const MamaPrice & value
)
Parameters:
Add a price field.
void addPrice(
const MamaFieldDescriptor * fieldDesc,
const MamaPrice & value
)
Parameters:
Add a new price field.
void addOpaque(
const char * name,
mama_fid_t fid,
const void * value,
size_t size
)
Parameters:
Add an opaque field
void addOpaque(
const MamaFieldDescriptor * fieldDesc,
const void * value,
size_t size
)
Parameters:
Add an opaque field
void addMsg(
const char * name,
mama_fid_t fid,
MamaMsg * value
)
Parameters:
Add a MamaMsg object
void addMsg(
const MamaFieldDescriptor * fieldDesc,
MamaMsg * value
)
Parameters:
Add a MamaMsg object
void addVectorChar(
const char * name,
mama_fid_t fid,
const char vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of characters. (Note: prefer using string fields or opaque fields over a vector of characters.)
void addVectorChar(
const MamaFieldDescriptor * fieldDesc,
const char vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of characters. (Note: prefer using string fields or opaque fields over a vector of characters.)
void addVectorI8(
const char * name,
mama_fid_t fid,
const mama_i8_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of signed 8-bit integers.
void addVectorI8(
const MamaFieldDescriptor * fieldDesc,
const mama_i8_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of signed 8-bit integers.
void addVectorU8(
const char * name,
mama_fid_t fid,
const mama_u8_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of unsigned 8-bit integers.
void addVectorU8(
const MamaFieldDescriptor * fieldDesc,
const mama_u8_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of unsigned 8-bit integers.
void addVectorI16(
const char * name,
mama_fid_t fid,
const mama_i16_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of signed 16-bit integers.
void addVectorI16(
const MamaFieldDescriptor * fieldDesc,
const mama_i16_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of signed 16-bit integers.
void addVectorU16(
const char * name,
mama_fid_t fid,
const mama_u16_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of unsigned 16-bit integers.
void addVectorU16(
const MamaFieldDescriptor * fieldDesc,
const mama_u16_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of unsigned 16-bit integers.
void addVectorI32(
const char * name,
mama_fid_t fid,
const mama_i32_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of signed 32-bit integers.
void addVectorI32(
const MamaFieldDescriptor * fieldDesc,
const mama_i32_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of signed 32-bit integers.
void addVectorU32(
const char * name,
mama_fid_t fid,
const mama_u32_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of unsigned 32-bit integers.
void addVectorU32(
const MamaFieldDescriptor * fieldDesc,
const mama_u32_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of unsigned 32-bit integers.
void addVectorI64(
const char * name,
mama_fid_t fid,
const mama_i64_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of signed 64-bit integers.
void addVectorI64(
const MamaFieldDescriptor * fieldDesc,
const mama_i64_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of signed 64-bit integers.
void addVectorU64(
const char * name,
mama_fid_t fid,
const mama_u64_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of unsigned 64-bit integers.
void addVectorU64(
const MamaFieldDescriptor * fieldDesc,
const mama_u64_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of unsigned 64-bit integers.
void addVectorF32(
const char * name,
mama_fid_t fid,
const mama_f32_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of 32-bit floating point numbers.
void addVectorF32(
const MamaFieldDescriptor * fieldDesc,
const mama_f32_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of unsigned 32-bit integers.
void addVectorF64(
const char * name,
mama_fid_t fid,
const mama_f64_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of 64-bit floating point numbers.
void addVectorF64(
const MamaFieldDescriptor * fieldDesc,
const mama_f64_t vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of unsigned 64-bit integers.
void addVectorString(
const char * name,
mama_fid_t fid,
const char * vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of strings.
void addVectorString(
const MamaFieldDescriptor * fieldDesc,
const char * vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of strings.
void addVectorMsg(
const char * name,
mama_fid_t fid,
MamaMsg * vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of MamaMsg objects.
void addVectorMsg(
const MamaFieldDescriptor * fieldDesc,
MamaMsg * vectorValues[],
size_t vectorLen
)
Parameters:
Add a vector of MamaMsg objects.
void updateBoolean(
const char * name,
mama_fid_t fid,
bool value
)
Parameters:
Update the value of an existing boolean field. If the field does not exist it is added.
void updateBoolean(
const MamaFieldDescriptor * fieldDesc,
bool value
)
Parameters:
Update the value of an existing boolean field. If the field does not exist it is added.
void updateChar(
const char * name,
mama_fid_t fid,
const char value
)
Parameters:
Update the value of an existing char field. If the field does not exist it is added.
void updateChar(
const MamaFieldDescriptor * fieldDesc,
const char value
)
Parameters:
Update the value of an existing char field. If the field does not exist it is added.
void updateI8(
const char * name,
mama_fid_t fid,
const mama_i8_t value
)
Parameters:
Update the value of an existing byte field. If the field does not exist it is added.
void updateI8(
const MamaFieldDescriptor * fieldDesc,
const mama_i8_t value
)
Parameters:
Update the value of an existing byte field. If the field does not exist it is added.
void updateU8(
const char * name,
mama_fid_t fid,
const mama_u8_t value
)
Parameters:
Update the value of an existing U8 field. If the field does not exist it is added.
void updateU8(
const MamaFieldDescriptor * fieldDesc,
const mama_u8_t value
)
Parameters:
Update the value of an existing U8 field. If the field does not exist it is added.
void updateI16(
const char * name,
mama_fid_t fid,
const mama_i16_t value
)
Parameters:
Update the value of an existing short field. If the field does not exist it is added.
void updateI16(
const MamaFieldDescriptor * fieldDesc,
const mama_i16_t value
)
Parameters:
Update the value of an existing short field. If the field does not exist it is added.
void updateU16(
const char * name,
mama_fid_t fid,
const mama_u16_t value
)
Parameters:
Update the value of an existing U16 field. If the field does not exist it is added.
void updateU16(
const MamaFieldDescriptor * fieldDesc,
const mama_u16_t value
)
Parameters:
Update the value of an existing U16 field. If the field does not exist it is added.
void updateI32(
const char * name,
mama_fid_t fid,
const mama_i32_t value
)
Parameters:
Update the value of an existing integer field. If the field does not exist it is added.
void updateI32(
const MamaFieldDescriptor * fieldDesc,
const mama_i32_t value
)
Parameters:
Update the value of an existing integer field. If the field does not exist it is added.
void updateU32(
const char * name,
mama_fid_t fid,
const mama_u32_t value
)
Parameters:
Update the value of an existing U32 field. If the field does not exist it is added.
void updateU32(
const MamaFieldDescriptor * fieldDesc,
const mama_u32_t value
)
Parameters:
Update the value of an existing U32 field. If the field does not exist it is added.
void updateI64(
const char * name,
mama_fid_t fid,
const mama_i64_t value
)
Parameters:
Update the value of an existing long field. If the field does not exist it is added.
void updateI64(
const MamaFieldDescriptor * fieldDesc,
const mama_i64_t value
)
Parameters:
Update the value of an existing long field. If the field does not exist it is added.
void updateU64(
const char * name,
mama_fid_t fid,
const mama_u64_t value
)
Parameters:
Update the value of an existing U64 field. If the field does not exist it is added.
void updateU64(
const MamaFieldDescriptor * fieldDesc,
const mama_u64_t value
)
Parameters:
Update the value of an existing U64 field. If the field does not exist it is added.
void updateF32(
const char * name,
mama_fid_t fid,
const mama_f32_t value
)
Parameters:
Update the value of an existing F32 field. If the field does not exist it is added.
void updateF32(
const MamaFieldDescriptor * fieldDesc,
const mama_f32_t value
)
Parameters:
Update the value of an existing F32 field. If the field does not exist it is added.
void updateF64(
const char * name,
mama_fid_t fid,
const mama_f64_t value
)
Parameters:
Update the value of an existing F64 field. If the field does not exist it is added.
void updateF64(
const MamaFieldDescriptor * fieldDesc,
const mama_f64_t value
)
Parameters:
Update the value of an existing F64 field. If the field does not exist it is added.
void updateString(
const char * name,
mama_fid_t fid,
const char * value
)
Parameters:
Update the value of an existing const char* field. If the field does not exist it is added.
void updateString(
const MamaFieldDescriptor * fieldDesc,
const char * value
)
Parameters:
Update the value of an existing string field. If the field does not exist it is added.
void updateOpaque(
const char * name,
mama_fid_t fid,
const void * value,
size_t size
)
Parameters:
Update the value of an existing opaque field. If the field does not exist it is added.
void updateOpaque(
const MamaFieldDescriptor * fieldDesc,
const void * value,
size_t size
)
Parameters:
Update the value of an existing opaque field. If the field does not exist it is added.
void updateDateTime(
const char * name,
mama_fid_t fid,
const MamaDateTime & value
)
Parameters:
Update a date/time field. If the field does not exist it is added.
void updateDateTime(
const MamaFieldDescriptor * fieldDesc,
const MamaDateTime & value
)
Parameters:
Update the value of an existing date/time field. If the field does not exist it is added.
void updatePrice(
const char * name,
mama_fid_t fid,
const MamaPrice & value
)
Parameters:
Update a price field. If the field does not exist it is added.
void updatePrice(
const MamaFieldDescriptor * fieldDesc,
const MamaPrice & value
)
Parameters:
Update the value of an existing price field. If the field does not exist it is added.
mamaMsgType getType(
void
) const
Get the message type.
const char * getMsgTypeName(
void
) const
Get a human readable type name.
mamaMsgStatus getStatus(
void
) const
Get the msg status.
const char * getMsgStatusString(
void
) const
Get human readable message status.
void iterateFields(
MamaMsgFieldIterator & iterator,
const MamaDictionary * dictionary,
void * closure
) const
Iterate over all the fields.
const char * toString() const
Return: A string representation of the message.
Return a const char * representation the message. The memory allocated by this method gets freed upon destroying the message or invoking toString() again.
const char * toJsonString() const
Return: A string representation of the message.
Return a const char * json representation the message. The memory allocated by this method gets freed upon destroying the message or invoking toString() again.
const char * toJsonString(
const MamaDictionary * dictionary
) const
Return: A string representation of the message.
Return a const char * json representation the message. The memory allocated by this method gets freed upon destroying the message or invoking toString() again.
const char * toNormalizedString() const
Return: A string representation of the message.
Return a const char * normalized representation the message. The memory allocated by this method gets freed upon destroying the message or invoking toString() again.
void getFieldAsString(
const char * name,
mama_fid_t fid,
char * result,
size_t maxResultLen
) const
Parameters:
Obtain a string representation the field with the given fid.
void getFieldAsString(
const MamaFieldDescriptor * fieldDesc,
char * result,
size_t maxResultLen
) const
Parameters:
Obtain a string representation the field with the given fid.
MamaMsgField * getField(
const char * name,
mama_fid_t fid
) const
Parameters:
Obtain a the mamaMsgField with the given fid.
MamaMsgField * getField(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Obtain a the mamaMsgField with the given fid.
bool tryField(
const char * name,
mama_fid_t fid
) const
Parameters:
Test for the presence of the MamaMsgField with the given fid. This method does not return the field.
bool tryField(
const MamaFieldDescriptor * fieldDesc
) const
Parameters:
Test for the presence of the MamaMsgField with the given field descriptor. This method does not return the field.
bool tryField(
const char * name,
mama_fid_t fid,
MamaMsgField * result
) const
Parameters:
Try to obtain the MamaMsgField with the given fid.
bool tryField(
const MamaFieldDescriptor * fieldDesc,
MamaMsgField * result
) const
Parameters:
Try to obtain the MamaMsgField with the given field descriptor.
bool tryFieldAsString(
const char * name,
mama_fid_t fid,
char * result,
size_t maxResultLen
) const
Parameters:
Return: Whether the field was present.
Try to obtain a string representation the field with the given fid.
bool tryFieldAsString(
const MamaFieldDescriptor * fieldDesc,
char * result,
size_t maxResultLen
) const
Parameters:
Return: Whether the field was present.
Try to obtain a string representation the field with the given fid.
void getByteBuffer(
const void *& buffer,
size_t & bufferLength
) const
Parameters:
Get the underlying message as an array of bytes. The buffer still belongs to the underlying message so no attempt should be made to modify it.
MamaMsg * detach(
void
)
Normally the Mama API owns incoming mamaMsg objects and they go out of scope and are freed when the message callback returns. Calling this method from the message callback creates a new C++ wrapper for the underlying message and transfers responsibility for calling destroy() to the caller.
The caller must also delete the pointer returned by detach(). Note that calling “delete msg.detach()” invokes destroy() so calling destroy is not necessary if the application calls delete.
bool isFromInbox(
void
) const
Whether this message is the result of a request needing a response.
mama_seqnum_t getSeqNum(
void
) const
bool getIsDefinitelyDuplicate(
void
) const
Return true if this message is definitely a duplicate message. This condition will not occur with the current feed handlers.
bool getIsPossiblyDuplicate(
void
) const
Return true if this message is possibly a duplicate message. This may occur in the event of a fault tolerant feed handler take over where the feed handler replays messages to prevent gaps.
bool getIsPossiblyDelayed(
void
) const
Return true if the message is possibly delayed. This condition may be true during a fault-tolerant takeover.
bool getIsDefinitelyDelayed(
void
) const
Return true if the message is delayed. This condition may be true during a fault-tolerant takeover.
bool getIsOutOfSequence(
void
) const
Return true when the FH sends the message out of sequence.
bool setNewBuffer(
void * buffer,
mama_size_t size
)
Parameters:
Return: status
Sets a new for an existing mamaMsg using the provided byte buffer. The application is responsible for destroying the message.
void * getNativeHandle(
void
) const
Return the native middleware message handle. This is only intended for Wombat internal use.
void createFromMsg(
mamaMsg msg,
bool destroyMsg =false
) const
Create the message from an existing mamaMsg
void setMsg(
mamaMsg msg
)
Set the message to a different underlying C message. Can be called multiple times on a single MamaMsg
const mamaMsg & getUnderlyingMsg(
void
) const
Return const reference to underlying mamaMsg
mamaMsg getUnderlyingMsg(
void
)
Return the underlying mamaMsg (non const)
MAMAIgnoreDeprecatedOpen mamaPayloadType getPayloadType(
void
) const
Return: payloadType The payload type.
Return the type of the payload message (wombat message or, if using a non-wombat message payload, RV or FAST message).
MAMAIgnoreDeprecatedClose void * getNativeMsg(
void
)
Return: nativeMsg The resulting native handle.
Get the native message structure for the underlying message
MamaMsgField & begin(
MamaMsgIterator & theIterator
) const
Parameters:
Return: first MamaMsgField
Sets a iterator to be used with existing mamaMsg. The iterator is set to the first MamaMsgField of the mamaMsg
mamaMsgReply getReplyHandle(
void
) const
Get a copy of the reply Handle
static void destroyReplyHandle(
mamaMsgReply replyHandle
)
Destroy a copied reply Handle
Updated on 2023-03-31 at 15:29:25 +0100