Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __IGTL_HEADER_H
00018 #define __IGTL_HEADER_H
00019
00020 #define IGTL_HEADER_VERSION 1
00021 #define IGTL_HEADER_SIZE 58
00022
00023 #define IGTL_HEADER_TYPE_SIZE 12
00024 #define IGTL_HEADER_NAME_SIZE 20
00025
00026
00027 #define IGTL_HEADER_TYPESIZE IGTL_HEADER_TYPE_SIZE
00028 #define IGTL_HEADER_NAMESIZE IGTL_HEADER_NAME_SIZE
00029 #define IGTL_HEADER_DEVSIZE IGTL_HEADER_NAME_SIZE
00030
00031
00032 #define IGTL_TYPE_PREFIX_NONE 0
00033 #define IGTL_TYPE_PREFIX_GET 1
00034 #define IGTL_TYPE_PREFIX_STT 2
00035 #define IGTL_TYPE_PREFIX_STP 3
00036 #define IGTL_TYPE_PREFIX_RTS 4
00037 #define IGTL_NUM_TYPE_PREFIX 5
00038
00039
00040 #include "igtl_types.h"
00041 #include "igtl_win32header.h"
00042
00043 #ifdef __cplusplus
00044 extern "C" {
00045 #endif
00046
00047 #pragma pack(1)
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 typedef struct {
00059 igtl_uint16 version;
00060 char name[IGTL_HEADER_TYPE_SIZE];
00061 char device_name[IGTL_HEADER_NAME_SIZE];
00062 igtl_uint64 timestamp;
00063 igtl_uint64 body_size;
00064 igtl_uint64 crc;
00065 } igtl_header;
00066
00067 #pragma pack()
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077 void igtl_export igtl_header_convert_byte_order(igtl_header * header);
00078
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082
00083 #endif
00084
00085