#include <mama/types.h>
#include <mama/status.h>
#include <mama/fielddesc.h>
#include <stdlib.h>
#include "wombat/port.h"
Go to the source code of this file.
Functions | |
MAMAExpDLL mama_status | mamaMsgField_create (mamaMsgField *msgField) |
Create a field. More... | |
MAMAExpDLL mama_status | mamaMsgField_destroy (mamaMsgField msgField) |
Destroy a message and free any resources associated with it. More... | |
MAMAExpDLL mama_status | mamaMsgField_getDescriptor (const mamaMsgField msgField, mamaFieldDescriptor *result) |
Get the field descriptor for this field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getFid (const mamaMsgField msgField, mama_fid_t *result) |
Get the field ID for this field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getName (const mamaMsgField msgField, const char **result) |
Get the field name for this field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getType (const mamaMsgField msgField, mamaFieldType *result) |
Get the field type for this field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getTypeName (const mamaMsgField msgField, const char **result) |
Get the type name for this field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getBool (const mamaMsgField msgField, mama_bool_t *result) |
Get a boolean field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getChar (const mamaMsgField msgField, char *result) |
Get a character field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getI8 (const mamaMsgField msgField, mama_i8_t *result) |
Get a I8, signed 8 bit integer, field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getU8 (const mamaMsgField msgField, mama_u8_t *result) |
Get a U8, unsigned 8 bit integer, field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getI16 (const mamaMsgField msgField, mama_i16_t *result) |
Get a I16, signed 16 bit integer, field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getU16 (const mamaMsgField msgField, mama_u16_t *result) |
Get a U16, unsigned 16 bit integer, field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getI32 (const mamaMsgField msgField, mama_i32_t *result) |
Get a I32, signed 32 bit integer, field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getU32 (const mamaMsgField msgField, mama_u32_t *result) |
Get a U32, unsigned 32 bit integer, field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getI64 (const mamaMsgField msgField, mama_i64_t *result) |
Get a I64, signed 64 bit integer, field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getU64 (const mamaMsgField msgField, mama_u64_t *result) |
Get a U64, unsigned 64 bit integer, field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getF32 (const mamaMsgField msgField, mama_f32_t *result) |
Get a F32, floating point 32 bit integer, field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getF64 (const mamaMsgField msgField, mama_f64_t *result) |
Get a F64, floating point 64 bit integer, field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getString (const mamaMsgField msgField, const char **result) |
Get a const char * field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getOpaque (const mamaMsgField msgField, const void **result, mama_size_t *size) |
Get an opaque field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getDateTime (const mamaMsgField msgField, mamaDateTime result) |
Get a MAMA date/time field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getPrice (const mamaMsgField msgField, mamaPrice result) |
Get a MAMA price field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getMsg (const mamaMsgField msgField, mamaMsg *result) |
Get a MAMA submessage field. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorBool (const mamaMsgField msgField, const mama_bool_t **result, mama_size_t *size) |
Get a vector of booleans. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorChar (const mamaMsgField msgField, const char **result, mama_size_t *size) |
Get a vector of characters. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorI8 (const mamaMsgField msgField, const mama_i8_t **result, mama_size_t *size) |
Get a vector of signed 8 bit integers. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorU8 (const mamaMsgField msgField, const mama_u8_t **result, mama_size_t *size) |
Get a vector of unsigned 8 bit integers. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorI16 (const mamaMsgField msgField, const mama_i16_t **result, mama_size_t *size) |
Get a vector of signed 16 bit integers. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorU16 (const mamaMsgField msgField, const mama_u16_t **result, mama_size_t *size) |
Get a vector of unsigned 16 bit integers. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorI32 (const mamaMsgField msgField, const mama_i32_t **result, mama_size_t *size) |
Get a vector of signed 32 bit integers. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorU32 (const mamaMsgField msgField, const mama_u32_t **result, mama_size_t *size) |
Get a vector of unsigned 32 bit integers. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorI64 (const mamaMsgField msgField, const mama_i64_t **result, mama_size_t *size) |
Get a vector of signed 64 bit integers. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorU64 (const mamaMsgField msgField, const mama_u64_t **result, mama_size_t *size) |
Get a vector of unsigned 64 bit integers. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorF32 (const mamaMsgField msgField, const mama_f32_t **result, mama_size_t *size) |
Get a vector of 32 bit floating point numbers. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorF64 (const mamaMsgField msgField, const mama_f64_t **result, mama_size_t *size) |
Get a vector of 64 bit floating point numbers. More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorString (const mamaMsgField msgField, const char ***result, mama_size_t *size) |
Get a vector of strings (char*). More... | |
MAMAExpDLL mama_status | mamaMsgField_getVectorMsg (const mamaMsgField msgField, const mamaMsg **result, mama_size_t *size) |
Get a vector of submessages. More... | |
MAMAExpDLL mama_status | mamaMsgField_getAsString (const mamaMsgField field, char *buf, mama_size_t length) |
Convert the value of the specified field to a string. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateBool (mamaMsgField field, mama_bool_t value) |
Update the specified field with a new bool value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateChar (mamaMsgField field, char value) |
Update the specified field with a new char value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateI8 (mamaMsgField field, mama_i8_t value) |
Update the specified field with a new I8 value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateU8 (mamaMsgField field, mama_u8_t value) |
Update the specified field with a new U8 value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateI16 (mamaMsgField field, mama_i16_t value) |
Update the specified field with a new I16 value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateU16 (mamaMsgField field, mama_u16_t value) |
Update the specified field with a new U16 value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateI32 (mamaMsgField field, mama_i32_t value) |
Update the specified field with a new I32 value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateU32 (mamaMsgField field, mama_u32_t value) |
Update the specified field with a new U32 value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateI64 (mamaMsgField field, mama_i64_t value) |
Update the specified field with a new I64 value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateU64 (mamaMsgField field, mama_u64_t value) |
Update the specified field with a new U64 value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateF32 (mamaMsgField field, mama_f32_t value) |
Update the specified field with a new F32 value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateF64 (mamaMsgField field, mama_f64_t value) |
Update the specified field with a new F64 value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updateDateTime (mamaMsgField field, const mamaDateTime value) |
Update the specified field with a new MamaDateTime value. More... | |
MAMAExpDLL mama_status | mamaMsgField_updatePrice (mamaMsgField field, const mamaPrice value) |
Update the specified field with a new MamaDateTime value. More... | |
MAMAExpDLL mama_status mamaMsgField_create | ( | mamaMsgField * | msgField | ) |
Create a field.
msgField | A pointer to the result. |
MAMAExpDLL mama_status mamaMsgField_destroy | ( | mamaMsgField | msgField | ) |
Destroy a message and free any resources associated with it.
msgField | The field. |
MAMAExpDLL mama_status mamaMsgField_getDescriptor | ( | const mamaMsgField | msgField, |
mamaFieldDescriptor * | result | ||
) |
Get the field descriptor for this field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getFid | ( | const mamaMsgField | msgField, |
mama_fid_t * | result | ||
) |
Get the field ID for this field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getName | ( | const mamaMsgField | msgField, |
const char ** | result | ||
) |
Get the field name for this field.
msgField | The field. |
result | (out) Pointer to the result. |
MAMAExpDLL mama_status mamaMsgField_getType | ( | const mamaMsgField | msgField, |
mamaFieldType * | result | ||
) |
Get the field type for this field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getTypeName | ( | const mamaMsgField | msgField, |
const char ** | result | ||
) |
Get the type name for this field.
This is a human readable representation of the type.
msgField | The field. |
result | (out) Pointer to the result. |
MAMAExpDLL mama_status mamaMsgField_getBool | ( | const mamaMsgField | msgField, |
mama_bool_t * | result | ||
) |
Get a boolean field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getChar | ( | const mamaMsgField | msgField, |
char * | result | ||
) |
Get a character field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getI8 | ( | const mamaMsgField | msgField, |
mama_i8_t * | result | ||
) |
Get a I8, signed 8 bit integer, field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getU8 | ( | const mamaMsgField | msgField, |
mama_u8_t * | result | ||
) |
Get a U8, unsigned 8 bit integer, field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getI16 | ( | const mamaMsgField | msgField, |
mama_i16_t * | result | ||
) |
Get a I16, signed 16 bit integer, field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getU16 | ( | const mamaMsgField | msgField, |
mama_u16_t * | result | ||
) |
Get a U16, unsigned 16 bit integer, field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getI32 | ( | const mamaMsgField | msgField, |
mama_i32_t * | result | ||
) |
Get a I32, signed 32 bit integer, field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getU32 | ( | const mamaMsgField | msgField, |
mama_u32_t * | result | ||
) |
Get a U32, unsigned 32 bit integer, field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getI64 | ( | const mamaMsgField | msgField, |
mama_i64_t * | result | ||
) |
Get a I64, signed 64 bit integer, field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getU64 | ( | const mamaMsgField | msgField, |
mama_u64_t * | result | ||
) |
Get a U64, unsigned 64 bit integer, field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getF32 | ( | const mamaMsgField | msgField, |
mama_f32_t * | result | ||
) |
Get a F32, floating point 32 bit integer, field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getF64 | ( | const mamaMsgField | msgField, |
mama_f64_t * | result | ||
) |
Get a F64, floating point 64 bit integer, field.
msgField | The field. |
result | (out) Pointer to the result |
MAMAExpDLL mama_status mamaMsgField_getString | ( | const mamaMsgField | msgField, |
const char ** | result | ||
) |
Get a const char * field.
msgField | The field. |
result | (out) the string value. |
MAMAExpDLL mama_status mamaMsgField_getOpaque | ( | const mamaMsgField | msgField, |
const void ** | result, | ||
mama_size_t * | size | ||
) |
Get an opaque field.
msgField | The field. |
result | (out) The opaque value. |
size | The size of the resulting opaque value. |
MAMAExpDLL mama_status mamaMsgField_getDateTime | ( | const mamaMsgField | msgField, |
mamaDateTime | result | ||
) |
Get a MAMA date/time field.
msgField | The field. |
result | (out) the output value. |
MAMAExpDLL mama_status mamaMsgField_getPrice | ( | const mamaMsgField | msgField, |
mamaPrice | result | ||
) |
Get a MAMA price field.
msgField | The field. |
result | (out) the output value. |
MAMAExpDLL mama_status mamaMsgField_getMsg | ( | const mamaMsgField | msgField, |
mamaMsg * | result | ||
) |
Get a MAMA submessage field.
msgField | The field. |
result | (out) the mamaMsg output value. |
MAMAExpDLL mama_status mamaMsgField_getVectorBool | ( | const mamaMsgField | msgField, |
const mama_bool_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of booleans.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorChar | ( | const mamaMsgField | msgField, |
const char ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of characters.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorI8 | ( | const mamaMsgField | msgField, |
const mama_i8_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of signed 8 bit integers.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorU8 | ( | const mamaMsgField | msgField, |
const mama_u8_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of unsigned 8 bit integers.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorI16 | ( | const mamaMsgField | msgField, |
const mama_i16_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of signed 16 bit integers.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorU16 | ( | const mamaMsgField | msgField, |
const mama_u16_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of unsigned 16 bit integers.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorI32 | ( | const mamaMsgField | msgField, |
const mama_i32_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of signed 32 bit integers.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorU32 | ( | const mamaMsgField | msgField, |
const mama_u32_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of unsigned 32 bit integers.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorI64 | ( | const mamaMsgField | msgField, |
const mama_i64_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of signed 64 bit integers.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorU64 | ( | const mamaMsgField | msgField, |
const mama_u64_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of unsigned 64 bit integers.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorF32 | ( | const mamaMsgField | msgField, |
const mama_f32_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of 32 bit floating point numbers.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorF64 | ( | const mamaMsgField | msgField, |
const mama_f64_t ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of 64 bit floating point numbers.
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorString | ( | const mamaMsgField | msgField, |
const char *** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of strings (char*).
msgField | The message field. |
result | A pointer to the result. |
size | An integer pointer that will contain the length of the result when the method returns.. |
MAMAExpDLL mama_status mamaMsgField_getVectorMsg | ( | const mamaMsgField | msgField, |
const mamaMsg ** | result, | ||
mama_size_t * | size | ||
) |
Get a vector of submessages.
msgField | The field. |
result | A pointer to the result. |
size | A pointer for the length of the result. |
MAMAExpDLL mama_status mamaMsgField_getAsString | ( | const mamaMsgField | field, |
char * | buf, | ||
mama_size_t | length | ||
) |
Convert the value of the specified field to a string.
Caller must provide a buffer for the value.
field | The field. |
buf | Buffer where the result will be copied. |
length | The length of the caller supplied buffer. |
MAMAExpDLL mama_status mamaMsgField_updateBool | ( | mamaMsgField | field, |
mama_bool_t | value | ||
) |
Update the specified field with a new bool value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type bool.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateChar | ( | mamaMsgField | field, |
char | value | ||
) |
Update the specified field with a new char value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type char.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateI8 | ( | mamaMsgField | field, |
mama_i8_t | value | ||
) |
Update the specified field with a new I8 value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type I8.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateU8 | ( | mamaMsgField | field, |
mama_u8_t | value | ||
) |
Update the specified field with a new U8 value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type U8.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateI16 | ( | mamaMsgField | field, |
mama_i16_t | value | ||
) |
Update the specified field with a new I16 value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type I16.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateU16 | ( | mamaMsgField | field, |
mama_u16_t | value | ||
) |
Update the specified field with a new U16 value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type U16.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateI32 | ( | mamaMsgField | field, |
mama_i32_t | value | ||
) |
Update the specified field with a new I32 value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type I32.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateU32 | ( | mamaMsgField | field, |
mama_u32_t | value | ||
) |
Update the specified field with a new U32 value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type U32.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateI64 | ( | mamaMsgField | field, |
mama_i64_t | value | ||
) |
Update the specified field with a new I64 value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type I64.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateU64 | ( | mamaMsgField | field, |
mama_u64_t | value | ||
) |
Update the specified field with a new U64 value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type U64.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateF32 | ( | mamaMsgField | field, |
mama_f32_t | value | ||
) |
Update the specified field with a new F32 value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type F32.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateF64 | ( | mamaMsgField | field, |
mama_f64_t | value | ||
) |
Update the specified field with a new F64 value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type F32.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updateDateTime | ( | mamaMsgField | field, |
const mamaDateTime | value | ||
) |
Update the specified field with a new MamaDateTime value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type F32.
field | The mamaMsgField to be updated. |
value | The new value for the field. |
MAMAExpDLL mama_status mamaMsgField_updatePrice | ( | mamaMsgField | field, |
const mamaPrice | value | ||
) |
Update the specified field with a new MamaDateTime value.
Returns MAMA_WRONG_FIELD_TYPE if the existing field is not of type F32.
field | The mamaMsgField to be updated. |
value | The new value for the field. |