Type
Represents a message field or property.
typedef struct {tibems_byte
type;tibems_int
size;tibems_int
count;tibemsData
data; } tibemsMsgField
01 tibemsMsgField. 05 MsgFld-type PIC X(1). 88 TIBEMS-NULL VALUE X'00'. 88 TIBEMS-BOOL VALUE X'01'. 88 TIBEMS-BYTE VALUE X'02'. 88 TIBEMS-WCHAR VALUE X'03'. 88 TIBEMS-SHORT VALUE X'04'. 88 TIBEMS-INT VALUE X'05'. 88 TIBEMS-LONG VALUE X'06'. 88 TIBEMS-FLOAT VALUE X'07'. 88 TIBEMS-DOUBLE VALUE X'08'. 88 TIBEMS-UTF8 VALUE X'09'. 88 TIBEMS-BYTES VALUE X'0A'. 88 TIBEMS-MAP-MSG VALUE X'0B'. 88 TIBEMS-STREAM-MSG VALUE X'0C'. 88 TIBEMS-SHORT-ARRAY VALUE X'14'. 88 TIBEMS-INT-ARRAY VALUE X'15'. 88 TIBEMS-LONG-ARRAY VALUE X'16'. 88 TIBEMS-FLOAT-ARRAY VALUE X'17'. 88 TIBEMS-DOUBLE-ARRAY VALUE X'18'. 05 Filler PIC X(3). 05 MsgFld-size PIC S9(9) BINARY. 05 MsgFld-count PIC S9(9) BINARY. 05 Filler PIC X(4). 05 MsgFld-data. 10 MFD PIC X(8).
Any message can have property values. Only map messages and stream messages can have fields.
Field
|
Description
|
---|---|
type
|
A one-byte indicator of the field’s datatype; for values, see Table 14 below.
|
size
|
The size of the data (in bytes). Zero is a special value, indicating that the size is unknown.
|
count
|
If the data is an array, this value is the number of elements in the array.
|
data
|
The actual data in the field, or the property value.
|
Constant
|
Value
|
Comment
|
---|---|---|
|
||
|
||
|
||
wide character; 2 bytes
|
||
|
||
|
||
|
||
|
||
|
||
UTF8-encoded string
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
tibemsMsg_GetProperty
, listed at tibemsMsgProperties Get
tibemsMapMsg_GetField
, listed at tibemsMapMsgGet
TIBCO Enterprise Message Service™ C and COBOL Reference System Release 4.3, February 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |