Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtl_string.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_STRING_H
16#define __IGTL_STRING_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_STRING_HEADER_SIZE 4
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#pragma pack(1) /* For 1-byte boundary in memroy */
30
31typedef struct {
32 igtl_uint16 encoding; /* Character encoding type as MIBenum value (defined by IANA). Default=3. */
33 /* Please refer http://www.iana.org/assignments/character-sets for detail */
34 igtl_uint16 length; /* Length of string */
36
37#pragma pack()
38
42
47
50igtl_uint64 igtl_export igtl_string_get_crc(igtl_string_header * header, void* string);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif /* __IGTL_STRING_H */
57
58
igtl_uint32 igtl_export igtl_string_get_string_length(igtl_string_header *header)
void igtl_export igtl_string_convert_byte_order(igtl_string_header *header)
igtl_uint64 igtl_export igtl_string_get_crc(igtl_string_header *header, void *string)
#define igtl_export
igtl_uint16 encoding
Definition igtl_string.h:32
igtl_uint16 length
Definition igtl_string.h:34

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