Main Page
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File List
Namespace Members
Compound Members
File Members
Source
igtlutil
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
26
extern
"C"
{
27
#endif
28
29
#pragma pack(1)
/* For 1-byte boundary in memroy */
30
31
typedef
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 */
35
}
igtl_string_header
;
36
37
#pragma pack()
38
41
igtl_uint32
igtl_export
igtl_string_get_string_length
(
igtl_string_header
* header);
42
46
void
igtl_export
igtl_string_convert_byte_order
(
igtl_string_header
* header);
47
50
igtl_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_util.h
igtl_types.h
igtl_string_convert_byte_order
void igtl_export igtl_string_convert_byte_order(igtl_string_header *header)
igtl_string_header
Definition:
igtl_string.h:31
igtl_string_header::length
igtl_uint16 length
Definition:
igtl_string.h:34
igtl_string_get_crc
igtl_uint64 igtl_export igtl_string_get_crc(igtl_string_header *header, void *string)
igtl_win32header.h
igtl_string_header::encoding
igtl_uint16 encoding
Definition:
igtl_string.h:32
igtl_string_get_string_length
igtl_uint32 igtl_export igtl_string_get_string_length(igtl_string_header *header)
igtl_export
#define igtl_export
Definition:
igtl_win32header.h:28
Generated for OpenIGTLink by
Doxygen
1.8.17 written by
Dimitri van Heesch
, © 1997-2012