Operators |
get_message_param — Query message parameters or information about the message.
get_message_param( : : MessageHandle, GenParamName, Key : GenParamValue)
get_message_param queries current values of message parameters or other information about the message status.
With each call of get_message_param , only a single parameter value can be queried. However, there are two types of parameters/queries:
Parameters/queries applicable to the entire message. In this case no keys must be specified, the parameter Key must be an empty tuple.
Parameters/queries applicable to the individual keys. In this case a non-empty list of keys must be specified in the parameter Key. The keys are processed in the same order as specified in the Key parameter.
Key-independent (global) parameter names:
Queries all the keys stored in the message, no matter whether they are associated with tuple or object data. The list of keys is reported as a string tuple via GenParamValue. For this query the parameter Key must be an empty tuple.
Currently supported key-specific parameter names are:
Reports 1 if the given key is stored in the message, 0 otherwise. The results are reported via GenParamValue, one value for each key.
Reports 'tuple' for keys associated with tuple data within the message (the data can be retrieved using get_message_tuple). Reports 'object' for keys associated with object data (the data can be retrieved using get_message_obj). The results are reported via GenParamValue, one value for each key. This parameter is useful to decide dynamically whether to use get_message_tuple or get_message_obj to get the data of a specific key.
Message handle.
Number of elements: MessageHandle == 1
Restriction: MessageHandle != 0
Names of the message parameters or info queries.
Number of elements: GenParamName == GenParamValue
Default value: 'message_keys'
List of values: 'key_data_type' , 'key_exists' , 'message_keys'
Message keys the parameter/query should be applied to.
Restriction: length(Key) > 0
Values of the message parameters or info queries.
get_message_param (Message, 'message_keys', [], AllKeys) get_message_param (Message, 'key_data_type', AllKeys, KeysType)
If all the operator parameters, and the specified keys are valid, get_message_param returns 2 (H_MSG_TRUE). Otherwise an exception is raised.
create_message, clear_message, set_message_tuple, get_message_tuple, set_message_obj, get_message_obj, set_message_param, enqueue_message, dequeue_message
Foundation
Operators |