UM C API  6.16
Set a field value in a message by field name

Functions

LBMSDMExpDLL int lbmsdm_msg_set_boolean_name (lbmsdm_msg_t *Message, const char *Name, uint8_t Value)
 Set a field value in a message by field name. More...
 
LBMSDMExpDLL int lbmsdm_msg_set_int8_name (lbmsdm_msg_t *Message, const char *Name, int8_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_uint8_name (lbmsdm_msg_t *Message, const char *Name, uint8_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_int16_name (lbmsdm_msg_t *Message, const char *Name, int16_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_uint16_name (lbmsdm_msg_t *Message, const char *Name, uint16_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_int32_name (lbmsdm_msg_t *Message, const char *Name, int32_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_uint32_name (lbmsdm_msg_t *Message, const char *Name, uint32_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_int64_name (lbmsdm_msg_t *Message, const char *Name, int64_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_uint64_name (lbmsdm_msg_t *Message, const char *Name, uint64_t Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_float_name (lbmsdm_msg_t *Message, const char *Name, float Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_double_name (lbmsdm_msg_t *Message, const char *Name, double Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_decimal_name (lbmsdm_msg_t *Message, const char *Name, const lbmsdm_decimal_t *Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_timestamp_name (lbmsdm_msg_t *Message, const char *Name, const struct timeval *Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_message_name (lbmsdm_msg_t *Message, const char *Name, const lbmsdm_msg_t *Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_string_name (lbmsdm_msg_t *Message, const char *Name, const char *Value)
 
LBMSDMExpDLL int lbmsdm_msg_set_unicode_name (lbmsdm_msg_t *Message, const char *Name, const wchar_t *Value, size_t Length)
 Set a unicode field value in a message by field name. More...
 
LBMSDMExpDLL int lbmsdm_msg_set_blob_name (lbmsdm_msg_t *Message, const char *Name, const void *Value, size_t Length)
 Set a BLOB field value in a message by field name. More...
 

Detailed Description

The functions in this group allow the value of a field to be set, and the type of the field to be set to a scalar type, for a field referenced by field name.

Function Documentation

LBMSDMExpDLL int lbmsdm_msg_set_blob_name ( lbmsdm_msg_t Message,
const char *  Name,
const void *  Value,
size_t  Length 
)

Set a BLOB field value in a message by field name.

Parameters
MessageThe SDM message containing the field.
NameField name.
ValueNew value.
LengthLength of Value in bytes.
Returns
LBMSDM_SUCCESS if successful, LBMSDM_FAILURE otherwise.
LBMSDMExpDLL int lbmsdm_msg_set_boolean_name ( lbmsdm_msg_t Message,
const char *  Name,
uint8_t  Value 
)

Set a field value in a message by field name.

Parameters
MessageThe SDM message containing the field.
NameField name.
ValueNew field value.
Returns
LBMSDM_SUCCESS if successful, LBMSDM_FAILURE otherwise.
LBMSDMExpDLL int lbmsdm_msg_set_decimal_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_double_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_float_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_int16_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_int32_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_int64_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_int8_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_message_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_string_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_timestamp_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_uint16_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_uint32_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_uint64_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_uint8_name ( lbmsdm_msg_t Message,
const char *  Name,
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_set_unicode_name ( lbmsdm_msg_t Message,
const char *  Name,
const wchar_t *  Value,
size_t  Length 
)

Set a unicode field value in a message by field name.

Parameters
MessageThe SDM message containing the field.
NameField name.
ValueNew value.
LengthLength of Value in wchar_ts.
Returns
LBMSDM_SUCCESS if successful, LBMSDM_FAILURE otherwise.