Difference between revisions of "OpenIGTLink/ProtocolV2/Type/AssociativeArray"

From NAMIC Wiki
Jump to: navigation, search
(Created page with ' << Version 2 Draft Page =Summary= Associative Array type is designed to transfer multiple pairs of key and values (associative array) to…')
 
Line 13: Line 13:
 
| align="left style="background:#e0e0e0;" | Type
 
| align="left style="background:#e0e0e0;" | Type
 
| align="left style="background:#e0e0e0;" | Description
 
| align="left style="background:#e0e0e0;" | Description
|-
 
| align="left" | TYPE
 
| align="left" | UINT8
 
| align="left" |
 
Bit 0-1: bit (0=8bit, 1=16bit, 2=32bit, 3=64bit)<br/>
 
Bit 2: sign (0=unsigned, 1=signed, ignored if values are float) <br/>
 
Bit 3: integer or float (0=integer, 1=float) <br/>
 
Bit 4: Data Byte Order
 
|-
 
| align="left" | DIM
 
| align="left" | UINT8
 
| align="left" | Dimension of array
 
|-
 
| align="left" | SIZE
 
| align="left" | UINT16[DIM]
 
| align="left" | Size of array
 
|-
 
| align="left" | DATA
 
| align="left" | TYPE[SIZE[0]][SIZE[1]]....[[SIZE[DIM-1]]]
 
| align="left" | Array data. (This field is not always in network byte order.)
 
 
|-
 
|-
 
|}
 
|}

Revision as of 13:57, 16 July 2010

Home < OpenIGTLink < ProtocolV2 < Type < AssociativeArray

<< Version 2 Draft Page

Summary

Associative Array type is designed to transfer multiple pairs of key and values (associative array) to the receiver. The message format supports key as an array of ASCII code with length less than 256 bytes, and value as an N-dimensional array of 8-, 16-, 32- and 64-bit singed and unsigned integer and 32- and 64-bit float. Maximum 256 dimensions is supported and up to 65536 pairs can be listed in the format. The format consists of data table, which specifies type and size of keys and values, followed by an array of key strings and values.

Message Types

AARRAY

Data Type Description

GET_AARRAY

Data Type Description


STT_AARRAY

Data Type Description

STP_AARRAY

Data Type Description

RTS_AARRAY

Implementations

The AARRAY message type is implemented in the following source code.

Contributors

Junichi Tokuda, Yuichiro Hayashi

Comments