UM C API  6.16.1
Add an element to an array field by field index

Functions

LBMSDMExpDLL int lbmsdm_msg_add_boolean_elem_idx (lbmsdm_msg_t *Message, size_t Index, uint8_t Value)
 Set the value of an array field element in a message by field index. More...
 
LBMSDMExpDLL int lbmsdm_msg_add_int8_elem_idx (lbmsdm_msg_t *Message, size_t Index, int8_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_uint8_elem_idx (lbmsdm_msg_t *Message, size_t Index, uint8_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_int16_elem_idx (lbmsdm_msg_t *Message, size_t Index, int16_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_uint16_elem_idx (lbmsdm_msg_t *Message, size_t Index, uint16_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_int32_elem_idx (lbmsdm_msg_t *Message, size_t Index, int32_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_uint32_elem_idx (lbmsdm_msg_t *Message, size_t Index, uint32_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_int64_elem_idx (lbmsdm_msg_t *Message, size_t Index, int64_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_uint64_elem_idx (lbmsdm_msg_t *Message, size_t Index, uint64_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_float_elem_idx (lbmsdm_msg_t *Message, size_t Index, float Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_double_elem_idx (lbmsdm_msg_t *Message, size_t Index, double Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_decimal_elem_idx (lbmsdm_msg_t *Message, size_t Index, const lbmsdm_decimal_t *Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_timestamp_elem_idx (lbmsdm_msg_t *Message, size_t Index, const struct timeval *Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_message_elem_idx (lbmsdm_msg_t *Message, size_t Index, const lbmsdm_msg_t *Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_string_elem_idx (lbmsdm_msg_t *Message, size_t Index, const char *Value)
 
LBMSDMExpDLL int lbmsdm_msg_add_unicode_elem_idx (lbmsdm_msg_t *Message, size_t Index, const wchar_t *Value, size_t Length)
 Set the value of a unicode array field element in a message by field index. More...
 
LBMSDMExpDLL int lbmsdm_msg_add_blob_elem_idx (lbmsdm_msg_t *Message, size_t Index, const void *Value, size_t Length)
 Set the value of a blob array field element in a message by field index. More...
 

Detailed Description

The functions in this group allow an element to be added to an array field referenced by field index.

Function Documentation

LBMSDMExpDLL int lbmsdm_msg_add_blob_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
const void *  Value,
size_t  Length 
)

Set the value of a blob array field element in a message by field index.

Parameters
MessageThe SDM message containing the field.
IndexField index.
ValueElement value.
LengthLength of the BLOB value, in bytes.
Returns
LBMSDM_SUCCESS if successful, LBMSDM_FAILURE otherwise.
LBMSDMExpDLL int lbmsdm_msg_add_boolean_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
uint8_t  Value 
)

Set the value of an array field element in a message by field index.

Parameters
MessageThe SDM message containing the field.
IndexField index.
ValueElement value.
Returns
LBMSDM_SUCCESS if successful, LBMSDM_FAILURE otherwise.
LBMSDMExpDLL int lbmsdm_msg_add_decimal_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
const lbmsdm_decimal_t Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_double_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
double  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_float_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
float  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_int16_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
int16_t  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_int32_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
int32_t  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_int64_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
int64_t  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_int8_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
int8_t  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_message_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
const lbmsdm_msg_t Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_string_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
const char *  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_timestamp_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
const struct timeval *  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_uint16_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
uint16_t  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_uint32_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
uint32_t  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_uint64_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
uint64_t  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_uint8_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
uint8_t  Value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

LBMSDMExpDLL int lbmsdm_msg_add_unicode_elem_idx ( lbmsdm_msg_t Message,
size_t  Index,
const wchar_t *  Value,
size_t  Length 
)

Set the value of a unicode array field element in a message by field index.

Parameters
MessageThe SDM message containing the field.
IndexField index.
ValueElement value.
LengthLength of the unicode string, in wchar_ts.
Returns
LBMSDM_SUCCESS if successful, LBMSDM_FAILURE otherwise.