MAMA message representation. More...
#include <MamaMsg.h>
Public Member Functions | |
~MamaMsg () | |
MamaMsg (void) | |
MamaMsg (const MamaMsg &mm) | |
MamaMsg (WombatMsg &wm) | |
void | create (void) |
Create the actual underlying wire format message. | |
void | createForPayload (const char id) |
Create a mamaMsg. | |
void | createForPayloadBridge (mamaPayloadBridge payloadBridge) |
Create a mamaMsg. | |
void | createForWombatMsg (void) |
The underlying wire format for the message will be Wombat Message regardless of the middleware being used. | |
void | createFromBuffer (const void *buffer, size_t bufferLength) |
Create a MamaMsg from the provided byte buffer. | |
void | createForBridgeFromBuffer (const void *buffer, size_t bufferLength, mamaBridge bridge) |
Create a mamaMsg from the provided byte buffer using either the native format for the bridge (e.g. | |
void | copy (const MamaMsg &rhs) |
Copy the message from another, severing all links to the original message. | |
MamaMsg * | getTempCopy () |
Get a temporary copy of the mamaMsg so to be able to modify the content. | |
void | applyMsg (const MamaMsg &msg) |
void | clear (void) |
Clear the message. | |
size_t | getNumFields (void) const |
Returns the total number of fields in the message. | |
size_t | getByteSize (void) const |
Get the message size in bytes. | |
bool | getBoolean (const char *name, mama_fid_t fid) const |
Get a boolean field. | |
bool | getBoolean (const MamaFieldDescriptor *fieldDesc) const |
Get a boolean field. | |
char | getChar (const char *name, mama_fid_t fid) const |
Get a char field. | |
char | getChar (const MamaFieldDescriptor *fieldDesc) const |
Get a char field. | |
mama_i8_t | getI8 (const char *name, mama_fid_t fid) const |
Get an I8 field. | |
mama_i8_t | getI8 (const MamaFieldDescriptor *fieldDesc) const |
Get a I8 field. | |
mama_u8_t | getU8 (const char *name, mama_fid_t fid) const |
Get a U8 field. | |
mama_u8_t | getU8 (const MamaFieldDescriptor *fieldDesc) const |
Get a U8 field. | |
mama_i16_t | getI16 (const char *name, mama_fid_t fid) const |
Get an I16 field. | |
mama_i16_t | getI16 (const MamaFieldDescriptor *fieldDesc) const |
Get an I16 field. | |
mama_u16_t | getU16 (const char *name, mama_fid_t fid) const |
Get a U16 field. | |
mama_u16_t | getU16 (const MamaFieldDescriptor *fieldDesc) const |
Get an U16 field. | |
mama_i32_t | getI32 (const char *name, mama_fid_t fid) const |
Get an I32 field. | |
mama_i32_t | getI32 (const MamaFieldDescriptor *fieldDesc) const |
Get a I32 field. | |
mama_u32_t | getU32 (const char *name, mama_fid_t fid) const |
Get a U32 field. | |
mama_u32_t | getU32 (const MamaFieldDescriptor *fieldDesc) const |
Get a U32 field. | |
mama_i64_t | getI64 (const char *name, mama_fid_t fid) const |
Get a I64 field. | |
mama_i64_t | getI64 (const MamaFieldDescriptor *fieldDesc) const |
Get a I64 field. | |
mama_u64_t | getU64 (const char *name, mama_fid_t fid) const |
Get a U64 field. | |
mama_u64_t | getU64 (const MamaFieldDescriptor *fieldDesc) const |
Get a U64 field. | |
mama_f32_t | getF32 (const char *name, mama_fid_t fid) const |
Get a f32 field. | |
mama_f32_t | getF32 (const MamaFieldDescriptor *fieldDesc) const |
Get a f32 field. | |
mama_f64_t | getF64 (const char *name, mama_fid_t fid) const |
Get a f64 field. | |
mama_f64_t | getF64 (const MamaFieldDescriptor *fieldDesc) const |
Get a f64 field. | |
const char * | getString (const char *name, mama_fid_t fid) const |
Get a const char* field. | |
const char * | getString (const MamaFieldDescriptor *fieldDesc) const |
Get a const char* field. | |
const void * | getOpaque (const char *name, mama_fid_t fid, size_t &size) const |
Get an opaque field. | |
const void * | getOpaque (const MamaFieldDescriptor *fieldDesc, size_t &size) const |
Get a const char* field. | |
void | getDateTime (const char *name, mama_fid_t fid, MamaDateTime &result) const |
Get a MamaDateTime field. | |
void | getDateTime (const MamaFieldDescriptor *fieldDesc, MamaDateTime &result) const |
Get a MamaDateTime field. | |
void | getPrice (const char *name, mama_fid_t fid, MamaPrice &result) const |
Get a MamaPrice field. | |
void | getPrice (const MamaFieldDescriptor *fieldDesc, MamaPrice &result) const |
Get a MamaPrice field. | |
const MamaMsg * | getMsg (const char *name, mama_fid_t fid) const |
Get a submessage field. | |
const MamaMsg * | getMsg (const MamaFieldDescriptor *fieldDesc) const |
Get a submessage field. | |
const char * | getVectorChar (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of characters. | |
const char * | getVectorChar (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of characters. | |
const mama_i8_t * | getVectorI8 (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of signed 8-bit integers. | |
const mama_i8_t * | getVectorI8 (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of signed 8-bit integers. | |
const mama_u8_t * | getVectorU8 (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of unsigned 8-bit integers. | |
const mama_u8_t * | getVectorU8 (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of unsigned 8-bit integers. | |
const mama_i16_t * | getVectorI16 (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of signed 16-bit integers. | |
const mama_i16_t * | getVectorI16 (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of signed 16-bit integers. | |
const mama_u16_t * | getVectorU16 (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of unsigned 16-bit integers. | |
const mama_u16_t * | getVectorU16 (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of unsigned 16-bit integers. | |
const mama_i32_t * | getVectorI32 (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of signed 32-bit integers. | |
const mama_i32_t * | getVectorI32 (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of signed 32-bit integers. | |
const mama_u32_t * | getVectorU32 (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of unsigned 32-bit integers. | |
const mama_u32_t * | getVectorU32 (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of unsigned 32-bit integers. | |
const mama_i64_t * | getVectorI64 (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of signed 64-bit integers. | |
const mama_i64_t * | getVectorI64 (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of signed 64-bit integers. | |
const mama_u64_t * | getVectorU64 (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of unsigned 64-bit integers. | |
const mama_u64_t * | getVectorU64 (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of unsigned 64-bit integers. | |
const mama_f32_t * | getVectorF32 (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of 32-bit floating point numbers. | |
const mama_f32_t * | getVectorF32 (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of 32-bit floating point numbers. | |
const mama_f64_t * | getVectorF64 (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of 64-bit floating point numbers. | |
const mama_f64_t * | getVectorF64 (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of 64-bit floating point numbers. | |
const MamaMsg ** | getVectorMsg (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of submessages field. | |
const MamaMsg ** | getVectorMsg (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of submessages. | |
const char ** | getVectorString (const char *name, mama_fid_t fid, size_t &resultLen) const |
Get a vector of strings field. | |
const char ** | getVectorString (const MamaFieldDescriptor *fieldDesc, size_t &resultLen) const |
Get a vector of submessages. | |
bool | tryBoolean (const char *name, mama_fid_t fid, bool &result) const |
Try to get a boolean field. | |
bool | tryBoolean (const MamaFieldDescriptor *field, bool &result) const |
Try to get a boolean field. | |
bool | tryChar (const char *name, mama_fid_t fid, char &result) const |
Try to get a char field. | |
bool | tryChar (const MamaFieldDescriptor *field, char &result) const |
Try to get a char field. | |
bool | tryI8 (const char *name, mama_fid_t fid, mama_i8_t &result) const |
Try to get an unsigned 8 bit integer field. | |
bool | tryI8 (const MamaFieldDescriptor *field, mama_i8_t &result) const |
Try to get an unsigned 8 bit field. | |
bool | tryU8 (const char *name, mama_fid_t fid, mama_u8_t &result) const |
Try to get an unsigned 8 bit integer field. | |
bool | tryU8 (const MamaFieldDescriptor *field, mama_u8_t &result) const |
Try to get an unsigned 8 bit field. | |
bool | tryI16 (const char *name, mama_fid_t fid, mama_i16_t &result) const |
Try to get a signed 16 bit integer field. | |
bool | tryI16 (const MamaFieldDescriptor *field, mama_i16_t &result) const |
Try to get a signed 16 bit field. | |
bool | tryU16 (const char *name, mama_fid_t fid, mama_u16_t &result) const |
Try to get an unsigned 16 bit integer field. | |
bool | tryU16 (const MamaFieldDescriptor *field, mama_u16_t &result) const |
Try to get an unsigned 16 bit field. | |
bool | tryI32 (const char *name, mama_fid_t fid, mama_i32_t &result) const |
Try to get a signed 32 bit integer field. | |
bool | tryI32 (const MamaFieldDescriptor *field, mama_i32_t &result) const |
Try to get a signed 32 bit integer field. | |
bool | tryU32 (const char *name, mama_fid_t fid, mama_u32_t &result) const |
Try to get an unsigned 32 bit integer field. | |
bool | tryU32 (const MamaFieldDescriptor *field, mama_u32_t &result) const |
Try to get an unsigned 32 bit integer field. | |
bool | tryI64 (const char *name, mama_fid_t fid, mama_i64_t &result) const |
Try to get a signed 64 bit field. | |
bool | tryI64 (const MamaFieldDescriptor *field, mama_i64_t &result) const |
Try to get a signed 64 bit field. | |
bool | tryU64 (const char *name, mama_fid_t fid, mama_u64_t &result) const |
Try to get an unsigned 64 bit field. | |
bool | tryU64 (const MamaFieldDescriptor *field, mama_u64_t &result) const |
Try to get an unsigned 64 bit field. | |
bool | tryF32 (const char *name, mama_fid_t fid, mama_f32_t &result) const |
Try to get a f32 field. | |
bool | tryF32 (const MamaFieldDescriptor *field, mama_f32_t &result) const |
Try to get a f32 field. | |
bool | tryF64 (const char *name, mama_fid_t fid, mama_f64_t &result) const |
Try to get a f64 field. | |
bool | tryF64 (const MamaFieldDescriptor *field, mama_f64_t &result) const |
Try to get a f64 field. | |
bool | tryString (const char *name, mama_fid_t fid, const char *&result) const |
Try to get a string field. | |
bool | tryString (const MamaFieldDescriptor *field, const char *&result) const |
Try to get a string field. | |
bool | tryDateTime (const char *name, mama_fid_t fid, MamaDateTime &result) const |
Try to get a date/time field. | |
bool | tryDateTime (const MamaFieldDescriptor *field, MamaDateTime &result) const |
Try to get a date/time field. | |
bool | tryPrice (const char *name, mama_fid_t fid, MamaPrice &result) const |
Try to get a price field. | |
bool | tryPrice (const MamaFieldDescriptor *field, MamaPrice &result) const |
Try to get a price field. | |
bool | tryMsg (const char *name, mama_fid_t fid, const MamaMsg *&result) const |
Try to get a submessage field. | |
bool | tryMsg (const MamaFieldDescriptor *field, const MamaMsg *&result) const |
Try to get a submessage field. | |
bool | tryOpaque (const char *name, mama_fid_t fid, const void *&result, size_t &size) const |
Try to get a string field. | |
bool | tryOpaque (const MamaFieldDescriptor *field, const void *&result, size_t &size) const |
Try to get a string field. | |
bool | tryVectorChar (const char *name, mama_fid_t fid, const char *&result, size_t &resultLen) const |
Try to get a vector of characters. | |
bool | tryVectorChar (const MamaFieldDescriptor *fieldDesc, const char *&result, size_t &resultLen) const |
Try to get a vector of characters. | |
bool | tryVectorI8 (const char *name, mama_fid_t fid, const mama_i8_t *&result, size_t &resultLen) const |
Try to get a vector of signed 8-bit integers. | |
bool | tryVectorI8 (const MamaFieldDescriptor *fieldDesc, const mama_i8_t *&result, size_t &resultLen) const |
Try to get a vector of signed 8-bit integers. | |
bool | tryVectorU8 (const char *name, mama_fid_t fid, const mama_u8_t *&result, size_t &resultLen) const |
Try to get a vector of unsigned 8-bit integers. | |
bool | tryVectorU8 (const MamaFieldDescriptor *fieldDesc, const mama_u8_t *&result, size_t &resultLen) const |
Try to get a vector of unsigned 8-bit integers. | |
bool | tryVectorI16 (const char *name, mama_fid_t fid, const mama_i16_t *&result, size_t &resultLen) const |
Try to get a vector of signed 16-bit integers. | |
bool | tryVectorI16 (const MamaFieldDescriptor *fieldDesc, const mama_i16_t *&result, size_t &resultLen) const |
Try to get a vector of signed 16-bit integers. | |
bool | tryVectorU16 (const char *name, mama_fid_t fid, const mama_u16_t *&result, size_t &resultLen) const |
Try to get a vector of unsigned 16-bit integers. | |
bool | tryVectorU16 (const MamaFieldDescriptor *fieldDesc, const mama_u16_t *&result, size_t &resultLen) const |
Try to get a vector of unsigned 16-bit integers. | |
bool | tryVectorI32 (const char *name, mama_fid_t fid, const mama_i32_t *&result, size_t &resultLen) const |
Try to get a vector of signed 32-bit integers. | |
bool | tryVectorI32 (const MamaFieldDescriptor *fieldDesc, const mama_i32_t *&result, size_t &resultLen) const |
Try to get a vector of signed 32-bit integers. | |
bool | tryVectorU32 (const char *name, mama_fid_t fid, const mama_u32_t *&result, size_t &resultLen) const |
Try to get a vector of unsigned 32-bit integers. | |
bool | tryVectorU32 (const MamaFieldDescriptor *fieldDesc, const mama_u32_t *&result, size_t &resultLen) const |
Try to get a vector of unsigned 32-bit integers. | |
bool | tryVectorI64 (const char *name, mama_fid_t fid, const mama_i64_t *&result, size_t &resultLen) const |
Try to get a vector of signed 64-bit integers. | |
bool | tryVectorI64 (const MamaFieldDescriptor *fieldDesc, const mama_i64_t *&result, size_t &resultLen) const |
Try to get a vector of signed 64-bit integers. | |
bool | tryVectorU64 (const char *name, mama_fid_t fid, const mama_u64_t *&result, size_t &resultLen) const |
Try to get a vector of unsigned 64-bit integers. | |
bool | tryVectorU64 (const MamaFieldDescriptor *fieldDesc, const mama_u64_t *&result, size_t &resultLen) const |
Try to get a vector of unsigned 64-bit integers. | |
bool | tryVectorF32 (const char *name, mama_fid_t fid, const mama_f32_t *&result, size_t &resultLen) const |
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 |
Try to get a vector of 32-bit floating point numbers. | |
bool | tryVectorF64 (const char *name, mama_fid_t fid, const mama_f64_t *&result, size_t &resultLen) const |
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 |
Try to get a vector of 64-bit floating point numbers. | |
bool | tryVectorString (const char *name, mama_fid_t fid, const char **&result, size_t &resultLen) const |
Try to get a vector of strings. | |
bool | tryVectorString (const MamaFieldDescriptor *fieldDesc, const char **&result, size_t &resultLen) const |
Try to get a vector of strings. | |
bool | tryVectorMsg (const char *name, mama_fid_t fid, const MamaMsg **&result, size_t &resultLen) const |
Try to get a vector of submessages field. | |
bool | tryVectorMsg (const MamaFieldDescriptor *fieldDesc, const MamaMsg **&result, size_t &resultLen) const |
Try to get a vector of submessages. | |
void | addBoolean (const char *name, mama_fid_t fid, bool value) |
Add a new boolean field. | |
void | addBoolean (const MamaFieldDescriptor *fieldDesc, bool value) |
Add a new boolean field. | |
void | addChar (const char *name, mama_fid_t fid, char value) |
Add a new char field. | |
void | addChar (const MamaFieldDescriptor *fieldDesc, char value) |
Add a new char field. | |
void | addI8 (const char *name, mama_fid_t fid, mama_i8_t value) |
Add a new I8 field. | |
void | addI8 (const MamaFieldDescriptor *fieldDesc, mama_i8_t value) |
Add a new I8 field. | |
void | addI16 (const char *name, mama_fid_t fid, mama_i16_t value) |
Add a new I16 field. | |
void | addI16 (const MamaFieldDescriptor *fieldDesc, mama_i16_t value) |
Add a new I16 field. | |
void | addI32 (const char *name, mama_fid_t fid, mama_i32_t value) |
Add a new I32 field. | |
void | addI32 (const MamaFieldDescriptor *fieldDesc, mama_i32_t value) |
Add a new I32 field. | |
void | addI64 (const char *name, mama_fid_t fid, mama_i64_t value) |
Add a new I64 field. | |
void | addI64 (const MamaFieldDescriptor *fieldDesc, mama_i64_t value) |
Add a new I64 field. | |
void | addU8 (const char *name, mama_fid_t fid, mama_u8_t value) |
Add a new byte (U8) const field. | |
void | addU8 (const MamaFieldDescriptor *fieldDesc, mama_u8_t value) |
Add a new U8 field. | |
void | addU16 (const char *name, mama_fid_t fid, mama_u16_t value) |
Add a new short (U16) const field. | |
void | addU16 (const MamaFieldDescriptor *fieldDesc, mama_u16_t value) |
Add a new U16 field. | |
void | addU32 (const char *name, mama_fid_t fid, mama_u32_t value) |
Add a new int (U32) const field. | |
void | addU32 (const MamaFieldDescriptor *fieldDesc, mama_u32_t value) |
Add a new U32 field. | |
void | addU64 (const char *name, mama_fid_t fid, mama_u64_t value) |
Add a new int (U64) const field. | |
void | addU64 (const MamaFieldDescriptor *fieldDesc, mama_u64_t value) |
Add a new U64 field. | |
void | addF32 (const char *name, mama_fid_t fid, mama_f32_t value) |
Add a new F32 field. | |
void | addF32 (const MamaFieldDescriptor *fieldDesc, mama_f32_t value) |
Add a new F32 field. | |
void | addF64 (const char *name, mama_fid_t fid, mama_f64_t value) |
Add a new F64 field. | |
void | addF64 (const MamaFieldDescriptor *fieldDesc, mama_f64_t value) |
Add a new F64 field. | |
void | addString (const char *name, mama_fid_t fid, const char *value) |
Add a const char* field. | |
void | addString (const MamaFieldDescriptor *fieldDesc, const char *value) |
Add a new const char* field. | |
void | addDateTime (const char *name, mama_fid_t fid, const MamaDateTime &value) |
Add a date/time field. | |
void | addDateTime (const MamaFieldDescriptor *fieldDesc, const MamaDateTime &value) |
Add a new date/time field. | |
void | addPrice (const char *name, mama_fid_t fid, const MamaPrice &value) |
Add a price field. | |
void | addPrice (const MamaFieldDescriptor *fieldDesc, const MamaPrice &value) |
Add a new price field. | |
void | addOpaque (const char *name, mama_fid_t fid, const void *value, size_t size) |
Add an opaque field. | |
void | addOpaque (const MamaFieldDescriptor *fieldDesc, const void *value, size_t size) |
Add an opaque field. | |
void | addMsg (const char *name, mama_fid_t fid, MamaMsg *value) |
Add a MamaMsg object. | |
void | addMsg (const MamaFieldDescriptor *fieldDesc, MamaMsg *value) |
Add a MamaMsg object. | |
void | addVectorChar (const char *name, mama_fid_t fid, const char vectorValues[], size_t vectorLen) |
Add a vector of characters. | |
void | addVectorChar (const MamaFieldDescriptor *fieldDesc, const char vectorValues[], size_t vectorLen) |
Add a vector of characters. | |
void | addVectorI8 (const char *name, mama_fid_t fid, const mama_i8_t vectorValues[], size_t vectorLen) |
Add a vector of signed 8-bit integers. | |
void | addVectorI8 (const MamaFieldDescriptor *fieldDesc, const mama_i8_t vectorValues[], size_t vectorLen) |
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) |
Add a vector of unsigned 8-bit integers. | |
void | addVectorU8 (const MamaFieldDescriptor *fieldDesc, const mama_u8_t vectorValues[], size_t vectorLen) |
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) |
Add a vector of signed 16-bit integers. | |
void | addVectorI16 (const MamaFieldDescriptor *fieldDesc, const mama_i16_t vectorValues[], size_t vectorLen) |
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) |
Add a vector of unsigned 16-bit integers. | |
void | addVectorU16 (const MamaFieldDescriptor *fieldDesc, const mama_u16_t vectorValues[], size_t vectorLen) |
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) |
Add a vector of signed 32-bit integers. | |
void | addVectorI32 (const MamaFieldDescriptor *fieldDesc, const mama_i32_t vectorValues[], size_t vectorLen) |
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) |
Add a vector of unsigned 32-bit integers. | |
void | addVectorU32 (const MamaFieldDescriptor *fieldDesc, const mama_u32_t vectorValues[], size_t vectorLen) |
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) |
Add a vector of signed 64-bit integers. | |
void | addVectorI64 (const MamaFieldDescriptor *fieldDesc, const mama_i64_t vectorValues[], size_t vectorLen) |
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) |
Add a vector of unsigned 64-bit integers. | |
void | addVectorU64 (const MamaFieldDescriptor *fieldDesc, const mama_u64_t vectorValues[], size_t vectorLen) |
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) |
Add a vector of 32-bit floating point numbers. | |
void | addVectorF32 (const MamaFieldDescriptor *fieldDesc, const mama_f32_t vectorValues[], size_t vectorLen) |
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) |
Add a vector of 64-bit floating point numbers. | |
void | addVectorF64 (const MamaFieldDescriptor *fieldDesc, const mama_f64_t vectorValues[], size_t vectorLen) |
Add a vector of unsigned 64-bit integers. | |
void | addVectorString (const char *name, mama_fid_t fid, const char *vectorValues[], size_t vectorLen) |
Add a vector of strings. | |
void | addVectorString (const MamaFieldDescriptor *fieldDesc, const char *vectorValues[], size_t vectorLen) |
Add a vector of strings. | |
void | addVectorMsg (const char *name, mama_fid_t fid, MamaMsg *vectorValues[], size_t vectorLen) |
Add a vector of MamaMsg objects. | |
void | addVectorMsg (const MamaFieldDescriptor *fieldDesc, MamaMsg *vectorValues[], size_t vectorLen) |
Add a vector of MamaMsg objects. | |
void | updateBoolean (const char *name, mama_fid_t fid, bool value) |
Update the value of an existing boolean field. | |
void | updateBoolean (const MamaFieldDescriptor *fieldDesc, bool value) |
Update the value of an existing boolean field. | |
void | updateChar (const char *name, mama_fid_t fid, const char value) |
Update the value of an existing char field. | |
void | updateChar (const MamaFieldDescriptor *fieldDesc, const char value) |
Update the value of an existing char field. | |
void | updateI8 (const char *name, mama_fid_t fid, const mama_i8_t value) |
Update the value of an existing byte field. | |
void | updateI8 (const MamaFieldDescriptor *fieldDesc, const mama_i8_t value) |
Update the value of an existing byte field. | |
void | updateU8 (const char *name, mama_fid_t fid, const mama_u8_t value) |
Update the value of an existing U8 field. | |
void | updateU8 (const MamaFieldDescriptor *fieldDesc, const mama_u8_t value) |
Update the value of an existing U8 field. | |
void | updateI16 (const char *name, mama_fid_t fid, const mama_i16_t value) |
Update the value of an existing short field. | |
void | updateI16 (const MamaFieldDescriptor *fieldDesc, const mama_i16_t value) |
Update the value of an existing short field. | |
void | updateU16 (const char *name, mama_fid_t fid, const mama_u16_t value) |
Update the value of an existing U16 field. | |
void | updateU16 (const MamaFieldDescriptor *fieldDesc, const mama_u16_t value) |
Update the value of an existing U16 field. | |
void | updateI32 (const char *name, mama_fid_t fid, const mama_i32_t value) |
Update the value of an existing integer field. | |
void | updateI32 (const MamaFieldDescriptor *fieldDesc, const mama_i32_t value) |
Update the value of an existing integer field. | |
void | updateU32 (const char *name, mama_fid_t fid, const mama_u32_t value) |
Update the value of an existing U32 field. | |
void | updateU32 (const MamaFieldDescriptor *fieldDesc, const mama_u32_t value) |
Update the value of an existing U32 field. | |
void | updateI64 (const char *name, mama_fid_t fid, const mama_i64_t value) |
Update the value of an existing long field. | |
void | updateI64 (const MamaFieldDescriptor *fieldDesc, const mama_i64_t value) |
Update the value of an existing long field. | |
void | updateU64 (const char *name, mama_fid_t fid, const mama_u64_t value) |
Update the value of an existing U64 field. | |
void | updateU64 (const MamaFieldDescriptor *fieldDesc, const mama_u64_t value) |
Update the value of an existing U64 field. | |
void | updateF32 (const char *name, mama_fid_t fid, const mama_f32_t value) |
Update the value of an existing F32 field. | |
void | updateF32 (const MamaFieldDescriptor *fieldDesc, const mama_f32_t value) |
Update the value of an existing F32 field. | |
void | updateF64 (const char *name, mama_fid_t fid, const mama_f64_t value) |
Update the value of an existing F64 field. | |
void | updateF64 (const MamaFieldDescriptor *fieldDesc, const mama_f64_t value) |
Update the value of an existing F64 field. | |
void | updateString (const char *name, mama_fid_t fid, const char *value) |
Update the value of an existing const char* field. | |
void | updateString (const MamaFieldDescriptor *fieldDesc, const char *value) |
Update the value of an existing string field. | |
void | updateOpaque (const char *name, mama_fid_t fid, const void *value, size_t size) |
Update the value of an existing opaque field. | |
void | updateOpaque (const MamaFieldDescriptor *fieldDesc, const void *value, size_t size) |
Update the value of an existing opaque field. | |
void | updateDateTime (const char *name, mama_fid_t fid, const MamaDateTime &value) |
Update a date/time field. | |
void | updateDateTime (const MamaFieldDescriptor *fieldDesc, const MamaDateTime &value) |
Update the value of an existing date/time field. | |
void | updatePrice (const char *name, mama_fid_t fid, const MamaPrice &value) |
Update a price field. | |
void | updatePrice (const MamaFieldDescriptor *fieldDesc, const MamaPrice &value) |
Update the value of an existing price field. | |
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 const char * representation the message. | |
void | getFieldAsString (const char *name, mama_fid_t fid, char *result, size_t maxResultLen) const |
Obtain a string representation the field with the given fid. | |
void | getFieldAsString (const MamaFieldDescriptor *fieldDesc, char *result, size_t maxResultLen) const |
Obtain a string representation the field with the given fid. | |
MamaMsgField * | getField (const char *name, mama_fid_t fid) const |
Obtain a the mamaMsgField with the given fid. | |
MamaMsgField * | getField (const MamaFieldDescriptor *fieldDesc) const |
Obtain a the mamaMsgField with the given fid. | |
bool | tryField (const char *name, mama_fid_t fid) const |
Test for the presence of the MamaMsgField with the given fid. | |
bool | tryField (const MamaFieldDescriptor *fieldDesc) const |
Test for the presence of the MamaMsgField with the given field descriptor. | |
bool | tryField (const char *name, mama_fid_t fid, MamaMsgField *result) const |
Try to obtain the MamaMsgField with the given fid. | |
bool | tryField (const MamaFieldDescriptor *fieldDesc, MamaMsgField *result) const |
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 |
Try to obtain a string representation the field with the given fid. | |
bool | tryFieldAsString (const MamaFieldDescriptor *fieldDesc, char *result, size_t maxResultLen) const |
Try to obtain a string representation the field with the given fid. | |
void | getByteBuffer (const void *&buffer, size_t &bufferLength) const |
Get the underlying message as an array of bytes. | |
void | createForBridge (mamaBridge bridgeImpl) |
Create a MamaMsg. | |
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. | |
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. | |
bool | getIsPossiblyDuplicate (void) const |
Return true if this message is possibly a duplicate message. | |
bool | getIsPossiblyDelayed (void) const |
Return true if the message is possibly delayed. | |
bool | getIsDefinitelyDelayed (void) const |
Return true if the message is delayed. | |
bool | getIsOutOfSequence (void) const |
Return true when the FH sends the message out of sequence. | |
bool | setNewBuffer (void *buffer, mama_size_t size) |
Sets a new for an existing mamaMsg using the provided byte buffer. | |
void * | getNativeHandle (void) const |
Return the native middleware message handle. | |
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. | |
const mamaMsg & | getUnderlyingMsg (void) const |
Return const reference to underlying mamaMsg. | |
mamaMsg | getUnderlyingMsg (void) |
Return the underlying mamaMsg (non const) | |
mamaPayloadType | getPayloadType (void) const |
Return the type of the payload message (wombat message or, if using a non-wombat message payload, RV or FAST message). | |
void * | getNativeMsg (void) |
Get the native message structure for the underlying message. | |
MamaMsgField & | begin (MamaMsgIterator &theIterator) const |
Sets a iterator to be used with existing mamaMsg. | |
mamaMsgReply | getReplyHandle (void) const |
Get a copy of the reply Handle. |
Static Public Member Functions | |
static void | destroyReplyHandle (mamaMsgReply replyHandle) |
Destroy a copied reply Handle. |
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.
Get methods for numeric values may result in loss of information through either rounding or truncation when a larger data type is accessed as a smaller one. The result may be the same as the result of casting the larger value to the smaller. For example calling 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.
Wombat::MamaMsg::~MamaMsg | ( | ) |
Wombat::MamaMsg::MamaMsg | ( | void | ) |
Wombat::MamaMsg::MamaMsg | ( | const MamaMsg & | mm | ) |
Wombat::MamaMsg::MamaMsg | ( | WombatMsg & | wm | ) |
void Wombat::MamaMsg::create | ( | void | ) |
void Wombat::MamaMsg::createForPayload | ( | const char | id | ) |
Create a mamaMsg.
id | The identifier of the payload to be used. |
void Wombat::MamaMsg::createForPayloadBridge | ( | mamaPayloadBridge | payloadBridge | ) |
Create a mamaMsg.
id | The payload bridge to be used. |
void Wombat::MamaMsg::createForWombatMsg | ( | void | ) |
The underlying wire format for the message will be Wombat Message regardless of the middleware being used.
void Wombat::MamaMsg::createFromBuffer | ( | const void * | buffer, |
size_t | bufferLength | ||
) |
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.
buffer | The byte array containing the wire format of the message |
bufferLength | The length, in bytes, of the supplied buffer |
void Wombat::MamaMsg::createForBridgeFromBuffer | ( | const void * | buffer, |
size_t | bufferLength, | ||
mamaBridge | bridge | ||
) |
Create a mamaMsg from the provided byte buffer using either the native format for the bridge (e.g.
TIB/RV messages for the TIB/RV bridge) or a wombatmsg. The function can determine from the buffer whether it is a wombatmsg or the native format for the transport being used. The application is responsible for destroying the message.
buffer | The byte array containing the wire format of the message |
bufferLength | The length, in bytes, of the supplied buffer |
bridge | The bridge to use |
void Wombat::MamaMsg::copy | ( | const MamaMsg & | rhs | ) |
Copy the message from another, severing all links to the original message.
MamaMsg* Wombat::MamaMsg::getTempCopy | ( | ) |
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 Wombat::MamaMsg::applyMsg | ( | const MamaMsg & | msg | ) |
void Wombat::MamaMsg::clear | ( | void | ) |
Clear the message.
All fields are removed.
size_t Wombat::MamaMsg::getNumFields | ( | void | ) | const |
Returns the total number of fields in the message.
Sub-messages count as a single field.
size_t Wombat::MamaMsg::getByteSize | ( | void | ) | const |
Get the message size in bytes.
Supported with the following transports: tibrv LBT
bool Wombat::MamaMsg::getBoolean | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a boolean field.
name | The name |
fid | The field identifier |
bool Wombat::MamaMsg::getBoolean | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a boolean field.
fieldDesc | The field descriptor |
char Wombat::MamaMsg::getChar | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a char field.
name | The name |
fid | The field identifier |
char Wombat::MamaMsg::getChar | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a char field.
fieldDesc | The field descriptor |
mama_i8_t Wombat::MamaMsg::getI8 | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get an I8 field.
name | The name |
fid | The field identifier |
mama_i8_t Wombat::MamaMsg::getI8 | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a I8 field.
fieldDesc | The field descriptor |
mama_u8_t Wombat::MamaMsg::getU8 | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a U8 field.
name | The name |
fid | The field identifier |
mama_u8_t Wombat::MamaMsg::getU8 | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a U8 field.
fieldDesc | The field descriptor |
mama_i16_t Wombat::MamaMsg::getI16 | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get an I16 field.
name | The name |
fid | The field identifier |
mama_i16_t Wombat::MamaMsg::getI16 | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get an I16 field.
fieldDesc | The field descriptor |
mama_u16_t Wombat::MamaMsg::getU16 | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a U16 field.
name | The name |
fid | The field identifier |
mama_u16_t Wombat::MamaMsg::getU16 | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get an U16 field.
fieldDesc | The field descriptor |
mama_i32_t Wombat::MamaMsg::getI32 | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get an I32 field.
name | The name |
fid | The field identifier |
mama_i32_t Wombat::MamaMsg::getI32 | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a I32 field.
fieldDesc | The field descriptor |
mama_u32_t Wombat::MamaMsg::getU32 | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a U32 field.
name | The name |
fid | The field identifier |
mama_u32_t Wombat::MamaMsg::getU32 | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a U32 field.
fieldDesc | The field descriptor |
mama_i64_t Wombat::MamaMsg::getI64 | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a I64 field.
name | The name |
fid | The field identifier. |
mama_i64_t Wombat::MamaMsg::getI64 | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a I64 field.
fieldDesc | The field descriptor |
mama_u64_t Wombat::MamaMsg::getU64 | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a U64 field.
name | The name |
fid | The field identifier |
mama_u64_t Wombat::MamaMsg::getU64 | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a U64 field.
fieldDesc | The field descriptor |
mama_f32_t Wombat::MamaMsg::getF32 | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a f32 field.
name | The name. |
fid | The field identifier. |
mama_f32_t Wombat::MamaMsg::getF32 | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a f32 field.
fieldDesc | The field descriptor |
mama_f64_t Wombat::MamaMsg::getF64 | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a f64 field.
name | The name. |
fid | The field identifier. |
mama_f64_t Wombat::MamaMsg::getF64 | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a f64 field.
fieldDesc | The field descriptor |
const char* Wombat::MamaMsg::getString | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a const char* field.
name | The field name. |
fid | The field identifier. |
const char* Wombat::MamaMsg::getString | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a const char* field.
fieldDesc | Pointer to the field descriptor |
const void* Wombat::MamaMsg::getOpaque | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | size | ||
) | const |
Get an opaque field.
name | The field name. | |
fid | The field identifier. | |
[out] | size | The opaque size in bytes. |
const void* Wombat::MamaMsg::getOpaque | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | size | ||
) | const |
Get a const char* field.
fieldDesc | The field descriptor | |
[out] | size | The opaque size in bytes. |
void Wombat::MamaMsg::getDateTime | ( | const char * | name, |
mama_fid_t | fid, | ||
MamaDateTime & | result | ||
) | const |
Get a MamaDateTime field.
name | The field name. |
fid | The field identifier. |
result | (out) the date/time. |
void Wombat::MamaMsg::getDateTime | ( | const MamaFieldDescriptor * | fieldDesc, |
MamaDateTime & | result | ||
) | const |
Get a MamaDateTime field.
fieldDesc | The field descriptor |
result | (out) the date/time. |
void Wombat::MamaMsg::getPrice | ( | const char * | name, |
mama_fid_t | fid, | ||
MamaPrice & | result | ||
) | const |
Get a MamaPrice field.
name | The field name. |
fid | The field identifier. |
result | (out) the date/time. |
void Wombat::MamaMsg::getPrice | ( | const MamaFieldDescriptor * | fieldDesc, |
MamaPrice & | result | ||
) | const |
Get a MamaPrice field.
fieldDesc | The field descriptor |
result | (out) the date/time. |
const MamaMsg* Wombat::MamaMsg::getMsg | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Get a submessage field.
name | The field name. |
fid | The field identifier. |
const MamaMsg* Wombat::MamaMsg::getMsg | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Get a submessage field.
fieldDesc | The field descriptor |
const char* Wombat::MamaMsg::getVectorChar | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of characters.
(Note: prefer using string fields or opaque fields over a vector of characters.)
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const char* Wombat::MamaMsg::getVectorChar | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of characters.
(Note: prefer using string fields or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const mama_i8_t* Wombat::MamaMsg::getVectorI8 | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of signed 8-bit integers.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const mama_i8_t* Wombat::MamaMsg::getVectorI8 | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of signed 8-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const mama_u8_t* Wombat::MamaMsg::getVectorU8 | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of unsigned 8-bit integers.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const mama_u8_t* Wombat::MamaMsg::getVectorU8 | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of unsigned 8-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const mama_i16_t* Wombat::MamaMsg::getVectorI16 | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of signed 16-bit integers.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const mama_i16_t* Wombat::MamaMsg::getVectorI16 | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of signed 16-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const mama_u16_t* Wombat::MamaMsg::getVectorU16 | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of unsigned 16-bit integers.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const mama_u16_t* Wombat::MamaMsg::getVectorU16 | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of unsigned 16-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const mama_i32_t* Wombat::MamaMsg::getVectorI32 | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of signed 32-bit integers.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const mama_i32_t* Wombat::MamaMsg::getVectorI32 | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of signed 32-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const mama_u32_t* Wombat::MamaMsg::getVectorU32 | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of unsigned 32-bit integers.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const mama_u32_t* Wombat::MamaMsg::getVectorU32 | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of unsigned 32-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const mama_i64_t* Wombat::MamaMsg::getVectorI64 | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of signed 64-bit integers.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const mama_i64_t* Wombat::MamaMsg::getVectorI64 | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of signed 64-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const mama_u64_t* Wombat::MamaMsg::getVectorU64 | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of unsigned 64-bit integers.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const mama_u64_t* Wombat::MamaMsg::getVectorU64 | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of unsigned 64-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const mama_f32_t* Wombat::MamaMsg::getVectorF32 | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of 32-bit floating point numbers.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const mama_f32_t* Wombat::MamaMsg::getVectorF32 | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of 32-bit floating point numbers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const mama_f64_t* Wombat::MamaMsg::getVectorF64 | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of 64-bit floating point numbers.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const mama_f64_t* Wombat::MamaMsg::getVectorF64 | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of 64-bit floating point numbers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const MamaMsg** Wombat::MamaMsg::getVectorMsg | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of submessages field.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const MamaMsg** Wombat::MamaMsg::getVectorMsg | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of submessages.
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
const char** Wombat::MamaMsg::getVectorString | ( | const char * | name, |
mama_fid_t | fid, | ||
size_t & | resultLen | ||
) | const |
Get a vector of strings field.
The vector is deleted with the message and overwritten by subsequent calls to getVectorString.
name | The field name. |
fid | The field identifier. |
resultLen | (out) the size of the vector. |
const char** Wombat::MamaMsg::getVectorString | ( | const MamaFieldDescriptor * | fieldDesc, |
size_t & | resultLen | ||
) | const |
Get a vector of submessages.
The vector is deleted with the message and overwritten by subsequent calls to getVectorString.
fieldDesc | The field descriptor |
resultLen | (out) the size of the vector. |
bool Wombat::MamaMsg::tryBoolean | ( | const char * | name, |
mama_fid_t | fid, | ||
bool & | result | ||
) | const |
Try to get a boolean field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryBoolean | ( | const MamaFieldDescriptor * | field, |
bool & | result | ||
) | const |
Try to get a boolean field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryChar | ( | const char * | name, |
mama_fid_t | fid, | ||
char & | result | ||
) | const |
Try to get a char field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryChar | ( | const MamaFieldDescriptor * | field, |
char & | result | ||
) | const |
Try to get a char field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryI8 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_i8_t & | result | ||
) | const |
Try to get an unsigned 8 bit integer field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryI8 | ( | const MamaFieldDescriptor * | field, |
mama_i8_t & | result | ||
) | const |
Try to get an unsigned 8 bit field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryU8 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_u8_t & | result | ||
) | const |
Try to get an unsigned 8 bit integer field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryU8 | ( | const MamaFieldDescriptor * | field, |
mama_u8_t & | result | ||
) | const |
Try to get an unsigned 8 bit field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryI16 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_i16_t & | result | ||
) | const |
Try to get a signed 16 bit integer field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryI16 | ( | const MamaFieldDescriptor * | field, |
mama_i16_t & | result | ||
) | const |
Try to get a signed 16 bit field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryU16 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_u16_t & | result | ||
) | const |
Try to get an unsigned 16 bit integer field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryU16 | ( | const MamaFieldDescriptor * | field, |
mama_u16_t & | result | ||
) | const |
Try to get an unsigned 16 bit field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryI32 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_i32_t & | result | ||
) | const |
Try to get a signed 32 bit integer field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryI32 | ( | const MamaFieldDescriptor * | field, |
mama_i32_t & | result | ||
) | const |
Try to get a signed 32 bit integer field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryU32 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_u32_t & | result | ||
) | const |
Try to get an unsigned 32 bit integer field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryU32 | ( | const MamaFieldDescriptor * | field, |
mama_u32_t & | result | ||
) | const |
Try to get an unsigned 32 bit integer field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryI64 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_i64_t & | result | ||
) | const |
Try to get a signed 64 bit field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryI64 | ( | const MamaFieldDescriptor * | field, |
mama_i64_t & | result | ||
) | const |
Try to get a signed 64 bit field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryU64 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_u64_t & | result | ||
) | const |
Try to get an unsigned 64 bit field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryU64 | ( | const MamaFieldDescriptor * | field, |
mama_u64_t & | result | ||
) | const |
Try to get an unsigned 64 bit field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryF32 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_f32_t & | result | ||
) | const |
Try to get a f32 field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryF32 | ( | const MamaFieldDescriptor * | field, |
mama_f32_t & | result | ||
) | const |
Try to get a f32 field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryF64 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_f64_t & | result | ||
) | const |
Try to get a f64 field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryF64 | ( | const MamaFieldDescriptor * | field, |
mama_f64_t & | result | ||
) | const |
Try to get a f64 field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryString | ( | const char * | name, |
mama_fid_t | fid, | ||
const char *& | result | ||
) | const |
Try to get a string field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
bool Wombat::MamaMsg::tryString | ( | const MamaFieldDescriptor * | field, |
const char *& | result | ||
) | const |
Try to get a string field.
result | The result (not modified if field not present) const |
field | The field to try |
bool Wombat::MamaMsg::tryDateTime | ( | const char * | name, |
mama_fid_t | fid, | ||
MamaDateTime & | result | ||
) | const |
Try to get a date/time field.
name | The field name |
fid | The field identifier |
result | The result (not modified if field not present) const |
bool Wombat::MamaMsg::tryDateTime | ( | const MamaFieldDescriptor * | field, |
MamaDateTime & | result | ||
) | const |
Try to get a date/time field.
field | The field to try |
result | The result (not modified if field not present) const |
bool Wombat::MamaMsg::tryPrice | ( | const char * | name, |
mama_fid_t | fid, | ||
MamaPrice & | result | ||
) | const |
Try to get a price field.
name | The field name |
fid | The field identifier |
result | The result (not modified if field not present) const |
bool Wombat::MamaMsg::tryPrice | ( | const MamaFieldDescriptor * | field, |
MamaPrice & | result | ||
) | const |
Try to get a price field.
field | The field to try |
result | The result (not modified if field not present) const |
bool Wombat::MamaMsg::tryMsg | ( | const char * | name, |
mama_fid_t | fid, | ||
const MamaMsg *& | result | ||
) | const |
Try to get a submessage field.
name | The field name |
fid | The field identifier |
result | The result |
bool Wombat::MamaMsg::tryMsg | ( | const MamaFieldDescriptor * | field, |
const MamaMsg *& | result | ||
) | const |
Try to get a submessage field.
field | The field to try |
result | The result |
bool Wombat::MamaMsg::tryOpaque | ( | const char * | name, |
mama_fid_t | fid, | ||
const void *& | result, | ||
size_t & | size | ||
) | const |
Try to get a string field.
result | The result (not modified if field not present) const |
name | The field name |
fid | The field identifier |
size | (out) The size of the opaque in bytes. |
bool Wombat::MamaMsg::tryOpaque | ( | const MamaFieldDescriptor * | field, |
const void *& | result, | ||
size_t & | size | ||
) | const |
Try to get a string field.
result | The result (not modified if field not present) const |
field | The field to try |
size | (out) The size of the opaque in bytes. |
bool Wombat::MamaMsg::tryVectorChar | ( | const char * | name, |
mama_fid_t | fid, | ||
const char *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of characters.
(Note: prefer using string fields or opaque fields over a vector of characters.)
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorChar | ( | const MamaFieldDescriptor * | fieldDesc, |
const char *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of characters.
(Note: prefer using string fields or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorI8 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i8_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of signed 8-bit integers.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorI8 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i8_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of signed 8-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorU8 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u8_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of unsigned 8-bit integers.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorU8 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u8_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of unsigned 8-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorI16 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i16_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of signed 16-bit integers.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorI16 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i16_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of signed 16-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorU16 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u16_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of unsigned 16-bit integers.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorU16 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u16_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of unsigned 16-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorI32 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i32_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of signed 32-bit integers.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorI32 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i32_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of signed 32-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorU32 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u32_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of unsigned 32-bit integers.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorU32 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u32_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of unsigned 32-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorI64 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i64_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of signed 64-bit integers.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorI64 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i64_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of signed 64-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorU64 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u64_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of unsigned 64-bit integers.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorU64 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u64_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of unsigned 64-bit integers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorF32 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_f32_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of 32-bit floating point numbers.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorF32 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_f32_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of 32-bit floating point numbers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorF64 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_f64_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of 64-bit floating point numbers.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorF64 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_f64_t *& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of 64-bit floating point numbers.
or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorString | ( | const char * | name, |
mama_fid_t | fid, | ||
const char **& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of strings.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorString | ( | const MamaFieldDescriptor * | fieldDesc, |
const char **& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of strings.
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorMsg | ( | const char * | name, |
mama_fid_t | fid, | ||
const MamaMsg **& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of submessages field.
name | The field name. |
fid | The field identifier. |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
bool Wombat::MamaMsg::tryVectorMsg | ( | const MamaFieldDescriptor * | fieldDesc, |
const MamaMsg **& | result, | ||
size_t & | resultLen | ||
) | const |
Try to get a vector of submessages.
fieldDesc | The field descriptor |
result | (out) The vector. |
resultLen | (out) The size of the vector. |
void Wombat::MamaMsg::addBoolean | ( | const char * | name, |
mama_fid_t | fid, | ||
bool | value | ||
) |
Add a new boolean field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addBoolean | ( | const MamaFieldDescriptor * | fieldDesc, |
bool | value | ||
) |
Add a new boolean field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addChar | ( | const char * | name, |
mama_fid_t | fid, | ||
char | value | ||
) |
Add a new char field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addChar | ( | const MamaFieldDescriptor * | fieldDesc, |
char | value | ||
) |
Add a new char field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addI8 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_i8_t | value | ||
) |
Add a new I8 field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addI8 | ( | const MamaFieldDescriptor * | fieldDesc, |
mama_i8_t | value | ||
) |
Add a new I8 field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addI16 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_i16_t | value | ||
) |
Add a new I16 field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addI16 | ( | const MamaFieldDescriptor * | fieldDesc, |
mama_i16_t | value | ||
) |
Add a new I16 field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addI32 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_i32_t | value | ||
) |
Add a new I32 field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addI32 | ( | const MamaFieldDescriptor * | fieldDesc, |
mama_i32_t | value | ||
) |
Add a new I32 field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addI64 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_i64_t | value | ||
) |
Add a new I64 field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addI64 | ( | const MamaFieldDescriptor * | fieldDesc, |
mama_i64_t | value | ||
) |
Add a new I64 field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addU8 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_u8_t | value | ||
) |
Add a new byte (U8) const field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addU8 | ( | const MamaFieldDescriptor * | fieldDesc, |
mama_u8_t | value | ||
) |
Add a new U8 field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addU16 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_u16_t | value | ||
) |
Add a new short (U16) const field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addU16 | ( | const MamaFieldDescriptor * | fieldDesc, |
mama_u16_t | value | ||
) |
Add a new U16 field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addU32 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_u32_t | value | ||
) |
Add a new int (U32) const field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addU32 | ( | const MamaFieldDescriptor * | fieldDesc, |
mama_u32_t | value | ||
) |
Add a new U32 field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addU64 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_u64_t | value | ||
) |
Add a new int (U64) const field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addU64 | ( | const MamaFieldDescriptor * | fieldDesc, |
mama_u64_t | value | ||
) |
Add a new U64 field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addF32 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_f32_t | value | ||
) |
Add a new F32 field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addF32 | ( | const MamaFieldDescriptor * | fieldDesc, |
mama_f32_t | value | ||
) |
Add a new F32 field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addF64 | ( | const char * | name, |
mama_fid_t | fid, | ||
mama_f64_t | value | ||
) |
Add a new F64 field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addF64 | ( | const MamaFieldDescriptor * | fieldDesc, |
mama_f64_t | value | ||
) |
Add a new F64 field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addString | ( | const char * | name, |
mama_fid_t | fid, | ||
const char * | value | ||
) |
Add a const char* field.
name | The name. |
value | The value. |
fid | The field identifier. |
void Wombat::MamaMsg::addString | ( | const MamaFieldDescriptor * | fieldDesc, |
const char * | value | ||
) |
Add a new const char* field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addDateTime | ( | const char * | name, |
mama_fid_t | fid, | ||
const MamaDateTime & | value | ||
) |
Add a date/time field.
name | The field name. |
fid | The field identifier. |
value | The value. |
void Wombat::MamaMsg::addDateTime | ( | const MamaFieldDescriptor * | fieldDesc, |
const MamaDateTime & | value | ||
) |
Add a new date/time field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addPrice | ( | const char * | name, |
mama_fid_t | fid, | ||
const MamaPrice & | value | ||
) |
Add a price field.
name | The field name. |
fid | The field identifier. |
value | The value. |
void Wombat::MamaMsg::addPrice | ( | const MamaFieldDescriptor * | fieldDesc, |
const MamaPrice & | value | ||
) |
Add a new price field.
fieldDesc | The field descriptor |
value | The value. |
void Wombat::MamaMsg::addOpaque | ( | const char * | name, |
mama_fid_t | fid, | ||
const void * | value, | ||
size_t | size | ||
) |
Add an opaque field.
name | The name. |
value | The value. |
fid | The field identifier. |
size | the size of the opaque field, in bytes |
void Wombat::MamaMsg::addOpaque | ( | const MamaFieldDescriptor * | fieldDesc, |
const void * | value, | ||
size_t | size | ||
) |
Add an opaque field.
fieldDesc | The field descriptor |
value | The value. |
size | the size of the opaque field, in bytes |
void Wombat::MamaMsg::addMsg | ( | const char * | name, |
mama_fid_t | fid, | ||
MamaMsg * | value | ||
) |
Add a MamaMsg object.
name | The field name. |
fid | The field identifier. |
value | the value to add |
void Wombat::MamaMsg::addMsg | ( | const MamaFieldDescriptor * | fieldDesc, |
MamaMsg * | value | ||
) |
Add a MamaMsg object.
fieldDesc | The field descriptor |
value | the value to add |
void Wombat::MamaMsg::addVectorChar | ( | const char * | name, |
mama_fid_t | fid, | ||
const char | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of characters.
(Note: prefer using string fields or opaque fields over a vector of characters.)
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorChar | ( | const MamaFieldDescriptor * | fieldDesc, |
const char | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of characters.
(Note: prefer using string fields or opaque fields over a vector of characters.)
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorI8 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i8_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of signed 8-bit integers.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorI8 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i8_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of signed 8-bit integers.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorU8 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u8_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of unsigned 8-bit integers.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorU8 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u8_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of unsigned 8-bit integers.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorI16 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i16_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of signed 16-bit integers.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorI16 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i16_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of signed 16-bit integers.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorU16 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u16_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of unsigned 16-bit integers.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorU16 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u16_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of unsigned 16-bit integers.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorI32 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i32_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of signed 32-bit integers.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorI32 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i32_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of signed 32-bit integers.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorU32 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u32_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of unsigned 32-bit integers.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorU32 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u32_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of unsigned 32-bit integers.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorI64 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i64_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of signed 64-bit integers.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorI64 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i64_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of signed 64-bit integers.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorU64 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u64_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of unsigned 64-bit integers.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorU64 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u64_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of unsigned 64-bit integers.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorF32 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_f32_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of 32-bit floating point numbers.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorF32 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_f32_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of unsigned 32-bit integers.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorF64 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_f64_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of 64-bit floating point numbers.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorF64 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_f64_t | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of unsigned 64-bit integers.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorString | ( | const char * | name, |
mama_fid_t | fid, | ||
const char * | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of strings.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorString | ( | const MamaFieldDescriptor * | fieldDesc, |
const char * | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of strings.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorMsg | ( | const char * | name, |
mama_fid_t | fid, | ||
MamaMsg * | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of MamaMsg objects.
name | The field name. |
fid | The field identifier. |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::addVectorMsg | ( | const MamaFieldDescriptor * | fieldDesc, |
MamaMsg * | vectorValues[], | ||
size_t | vectorLen | ||
) |
Add a vector of MamaMsg objects.
fieldDesc | The field descriptor |
vectorValues | The vector values. |
vectorLen | The size of the vector. |
void Wombat::MamaMsg::updateBoolean | ( | const char * | name, |
mama_fid_t | fid, | ||
bool | value | ||
) |
Update the value of an existing boolean field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateBoolean | ( | const MamaFieldDescriptor * | fieldDesc, |
bool | value | ||
) |
Update the value of an existing boolean field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateChar | ( | const char * | name, |
mama_fid_t | fid, | ||
const char | value | ||
) |
Update the value of an existing char field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateChar | ( | const MamaFieldDescriptor * | fieldDesc, |
const char | value | ||
) |
Update the value of an existing char field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateI8 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i8_t | value | ||
) |
Update the value of an existing byte field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateI8 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i8_t | value | ||
) |
Update the value of an existing byte field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateU8 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u8_t | value | ||
) |
Update the value of an existing U8 field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateU8 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u8_t | value | ||
) |
Update the value of an existing U8 field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateI16 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i16_t | value | ||
) |
Update the value of an existing short field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateI16 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i16_t | value | ||
) |
Update the value of an existing short field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateU16 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u16_t | value | ||
) |
Update the value of an existing U16 field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateU16 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u16_t | value | ||
) |
Update the value of an existing U16 field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateI32 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i32_t | value | ||
) |
Update the value of an existing integer field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateI32 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i32_t | value | ||
) |
Update the value of an existing integer field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateU32 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u32_t | value | ||
) |
Update the value of an existing U32 field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateU32 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u32_t | value | ||
) |
Update the value of an existing U32 field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateI64 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_i64_t | value | ||
) |
Update the value of an existing long field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateI64 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_i64_t | value | ||
) |
Update the value of an existing long field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateU64 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_u64_t | value | ||
) |
Update the value of an existing U64 field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateU64 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_u64_t | value | ||
) |
Update the value of an existing U64 field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateF32 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_f32_t | value | ||
) |
Update the value of an existing F32 field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateF32 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_f32_t | value | ||
) |
Update the value of an existing F32 field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateF64 | ( | const char * | name, |
mama_fid_t | fid, | ||
const mama_f64_t | value | ||
) |
Update the value of an existing F64 field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateF64 | ( | const MamaFieldDescriptor * | fieldDesc, |
const mama_f64_t | value | ||
) |
Update the value of an existing F64 field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateString | ( | const char * | name, |
mama_fid_t | fid, | ||
const char * | value | ||
) |
Update the value of an existing const char* field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
void Wombat::MamaMsg::updateString | ( | const MamaFieldDescriptor * | fieldDesc, |
const char * | value | ||
) |
Update the value of an existing string field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updateOpaque | ( | const char * | name, |
mama_fid_t | fid, | ||
const void * | value, | ||
size_t | size | ||
) |
Update the value of an existing opaque field.
If the field does not exist it is added.
name | The name. |
value | The new value. |
fid | The field identifier. |
size | The size of the opaque in bytes |
void Wombat::MamaMsg::updateOpaque | ( | const MamaFieldDescriptor * | fieldDesc, |
const void * | value, | ||
size_t | size | ||
) |
Update the value of an existing opaque field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
size | The size of the opaque in bytes |
void Wombat::MamaMsg::updateDateTime | ( | const char * | name, |
mama_fid_t | fid, | ||
const MamaDateTime & | value | ||
) |
Update a date/time field.
If the field does not exist it is added.
name | The field name. |
fid | The field identifier. |
value | The value. |
void Wombat::MamaMsg::updateDateTime | ( | const MamaFieldDescriptor * | fieldDesc, |
const MamaDateTime & | value | ||
) |
Update the value of an existing date/time field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
void Wombat::MamaMsg::updatePrice | ( | const char * | name, |
mama_fid_t | fid, | ||
const MamaPrice & | value | ||
) |
Update a price field.
If the field does not exist it is added.
name | The field name. |
fid | The field identifier. |
value | The value. |
void Wombat::MamaMsg::updatePrice | ( | const MamaFieldDescriptor * | fieldDesc, |
const MamaPrice & | value | ||
) |
Update the value of an existing price field.
If the field does not exist it is added.
fieldDesc | The field descriptor |
value | The new value. |
mamaMsgType Wombat::MamaMsg::getType | ( | void | ) | const |
Get the message type.
const char* Wombat::MamaMsg::getMsgTypeName | ( | void | ) | const |
Get a human readable type name.
mamaMsgStatus Wombat::MamaMsg::getStatus | ( | void | ) | const |
Get the msg status.
const char* Wombat::MamaMsg::getMsgStatusString | ( | void | ) | const |
Get human readable message status.
void Wombat::MamaMsg::iterateFields | ( | MamaMsgFieldIterator & | iterator, |
const MamaDictionary * | dictionary, | ||
void * | closure | ||
) | const |
Iterate over all the fields.
const char* Wombat::MamaMsg::toString | ( | ) | const |
Return a const char * representation the message.
The memory allocated by this method gets freed upon destroying the message or invoking toString() again.
void Wombat::MamaMsg::getFieldAsString | ( | const char * | name, |
mama_fid_t | fid, | ||
char * | result, | ||
size_t | maxResultLen | ||
) | const |
Obtain a string representation the field with the given fid.
name | The field name. |
fid | The field identifier. |
result | Buffer to put result. |
maxResultLen | Maximum size of buffer to put result. |
void Wombat::MamaMsg::getFieldAsString | ( | const MamaFieldDescriptor * | fieldDesc, |
char * | result, | ||
size_t | maxResultLen | ||
) | const |
Obtain a string representation the field with the given fid.
fieldDesc | The field descriptor |
result | Buffer to put result. |
maxResultLen | Maximum size of buffer to put result. |
MamaMsgField* Wombat::MamaMsg::getField | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Obtain a the mamaMsgField with the given fid.
name | The field name. |
fid | The field identifier. |
MamaMsgField* Wombat::MamaMsg::getField | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Obtain a the mamaMsgField with the given fid.
fieldDesc | The field descriptor |
bool Wombat::MamaMsg::tryField | ( | const char * | name, |
mama_fid_t | fid | ||
) | const |
Test for the presence of the MamaMsgField with the given fid.
This method does not return the field.
name | The field name. |
fid | The field identifier. |
bool Wombat::MamaMsg::tryField | ( | const MamaFieldDescriptor * | fieldDesc | ) | const |
Test for the presence of the MamaMsgField with the given field descriptor.
This method does not return the field.
fieldDesc | The field descriptor |
bool Wombat::MamaMsg::tryField | ( | const char * | name, |
mama_fid_t | fid, | ||
MamaMsgField * | result | ||
) | const |
Try to obtain the MamaMsgField with the given fid.
name | The field name. |
fid | The field identifier. |
result | The result (not modified if field not present) |
bool Wombat::MamaMsg::tryField | ( | const MamaFieldDescriptor * | fieldDesc, |
MamaMsgField * | result | ||
) | const |
Try to obtain the MamaMsgField with the given field descriptor.
fieldDesc | The field descriptor |
result | The result (not modified if field not present) |
bool Wombat::MamaMsg::tryFieldAsString | ( | const char * | name, |
mama_fid_t | fid, | ||
char * | result, | ||
size_t | maxResultLen | ||
) | const |
Try to obtain a string representation the field with the given fid.
name | The field name. |
fid | The field identifier. |
result | Buffer to put result. |
maxResultLen | Maximum size of buffer to put result. |
bool Wombat::MamaMsg::tryFieldAsString | ( | const MamaFieldDescriptor * | fieldDesc, |
char * | result, | ||
size_t | maxResultLen | ||
) | const |
Try to obtain a string representation the field with the given fid.
fieldDesc | The field descriptor |
result | Buffer to put result. |
maxResultLen | Maximum size of buffer to put result. |
void Wombat::MamaMsg::getByteBuffer | ( | const void *& | buffer, |
size_t & | bufferLength | ||
) | const |
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.
buffer | The byte array containing the buffer |
bufferLength | The length, in bytes of the returned buffer |
void Wombat::MamaMsg::createForBridge | ( | mamaBridge | bridgeImpl | ) |
Create a MamaMsg.
This will create a message using the native format for the bridge e.g. TIB/RV messages for the TIB/RV bridge. For middlewares which only do not have a native message format, a wombatmsg will be created.
bridgeImpl | the bridge to use |
MamaMsg* Wombat::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 Wombat::MamaMsg::isFromInbox | ( | void | ) | const |
Whether this message is the result of a request needing a response.
mama_seqnum_t Wombat::MamaMsg::getSeqNum | ( | void | ) | const |
bool Wombat::MamaMsg::getIsDefinitelyDuplicate | ( | void | ) | const |
Return true if this message is definitely a duplicate message.
This condition will not occur with the current feed handlers.
bool Wombat::MamaMsg::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 Wombat::MamaMsg::getIsPossiblyDelayed | ( | void | ) | const |
Return true if the message is possibly delayed.
This condition may be true during a fault-tolerant takeover.
bool Wombat::MamaMsg::getIsDefinitelyDelayed | ( | void | ) | const |
Return true if the message is delayed.
This condition may be true during a fault-tolerant takeover.
bool Wombat::MamaMsg::getIsOutOfSequence | ( | void | ) | const |
Return true when the FH sends the message out of sequence.
bool Wombat::MamaMsg::setNewBuffer | ( | void * | buffer, |
mama_size_t | size | ||
) |
Sets a new for an existing mamaMsg using the provided byte buffer.
The application is responsible for destroying the message.
buffer | the new byte buffer |
size | size of buffer |
void* Wombat::MamaMsg::getNativeHandle | ( | void | ) | const |
Return the native middleware message handle.
This is only intended for Wombat internal use.
void Wombat::MamaMsg::createFromMsg | ( | mamaMsg | msg, |
bool | destroyMsg = false |
||
) | const |
Create the message from an existing mamaMsg.
void Wombat::MamaMsg::setMsg | ( | mamaMsg | msg | ) |
Set the message to a different underlying C message.
Can be called multiple times on a single MamaMsg
const mamaMsg& Wombat::MamaMsg::getUnderlyingMsg | ( | void | ) | const |
Return const reference to underlying mamaMsg.
mamaMsg Wombat::MamaMsg::getUnderlyingMsg | ( | void | ) |
Return the underlying mamaMsg (non const)
mamaPayloadType Wombat::MamaMsg::getPayloadType | ( | void | ) | const |
Return the type of the payload message (wombat message or, if using a non-wombat message payload, RV or FAST message).
void* Wombat::MamaMsg::getNativeMsg | ( | void | ) |
Get the native message structure for the underlying message.
MamaMsgField& Wombat::MamaMsg::begin | ( | MamaMsgIterator & | theIterator | ) | const |
Sets a iterator to be used with existing mamaMsg.
The iterator is set to the first MamaMsgField of the mamaMsg
theiterator | iterator to be used |
mamaMsgReply Wombat::MamaMsg::getReplyHandle | ( | void | ) | const |
Get a copy of the reply Handle.
|
static |
Destroy a copied reply Handle.