Main Page
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File List
Namespace Members
Compound Members
File Members
Source
igtlutil
igtl_command.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: The OpenIGTLink Library
4
Language: C
5
Web page: http://openigtlink.org/
6
7
Copyright (c) Insight Software Consortium. All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notices for more information.
12
13
=========================================================================*/
14
15
#ifndef __IGTL_COMMAND_H
16
#define __IGTL_COMMAND_H
17
18
#include "
igtl_win32header.h
"
19
#include "
igtl_util.h
"
20
#include "
igtl_types.h
"
21
#include "
igtl_win32header.h
"
22
23
#define IGTL_COMMAND_HEADER_SIZE 138
24
#define IGTL_COMMAND_NAME_SIZE 128
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
#pragma pack(1)
/* For 1-byte boundary in memory */
31
32
typedef
struct
{
33
igtl_uint32
commandId
;
/* The unique ID of this command */
34
igtl_uint8 commandName[
IGTL_COMMAND_NAME_SIZE
];
/* The name of this command */
35
igtl_uint16
encoding
;
/* Character encoding type as MIBenum value (defined by IANA). Default=3 */
36
/* Please refer http://www.iana.org/assignments/character-sets for detail */
37
igtl_uint32
length
;
/* Length of command */
38
}
igtl_command_header
;
39
40
#pragma pack()
41
45
void
igtl_export
igtl_command_convert_byte_order
(
igtl_command_header
* header);
46
49
igtl_uint64
igtl_export
igtl_command_get_crc
(
igtl_command_header
* header,
void
* command);
50
51
#ifdef __cplusplus
52
}
53
#endif
54
55
#endif
/* __IGTL_COMMAND_H */
igtl_command_convert_byte_order
void igtl_export igtl_command_convert_byte_order(igtl_command_header *header)
IGTL_COMMAND_NAME_SIZE
#define IGTL_COMMAND_NAME_SIZE
Definition
igtl_command.h:24
igtl_command_get_crc
igtl_uint64 igtl_export igtl_command_get_crc(igtl_command_header *header, void *command)
igtl_types.h
igtl_util.h
igtl_win32header.h
igtl_export
#define igtl_export
Definition
igtl_win32header.h:28
igtl_command_header
Definition
igtl_command.h:32
igtl_command_header::encoding
igtl_uint16 encoding
Definition
igtl_command.h:35
igtl_command_header::commandId
igtl_uint32 commandId
Definition
igtl_command.h:33
igtl_command_header::length
igtl_uint32 length
Definition
igtl_command.h:37
Generated for OpenIGTLink by
Doxygen
1.9.8 written by
Dimitri van Heesch
, © 1997-2012