Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
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
27extern "C" {
28#endif
29
30#pragma pack(1) /* For 1-byte boundary in memory */
31
32typedef 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 */
39
40#pragma pack()
41
46
49igtl_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 */
void igtl_export igtl_command_convert_byte_order(igtl_command_header *header)
#define IGTL_COMMAND_NAME_SIZE
igtl_uint64 igtl_export igtl_command_get_crc(igtl_command_header *header, void *command)
#define igtl_export
igtl_uint16 encoding
igtl_uint32 commandId

Generated for OpenIGTLink by Doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2012