hl7parse
lib7
meta.h
Go to the documentation of this file.
1
23
#pragma once
24
25
#include <stdio.h>
26
#include "
bom.h
"
27
33
typedef
struct
hl7_meta_t
{
35
int
field_length
;
43
int
crlf
;
44
46
char
sep_message
;
48
char
sep_field
;
50
char
sep_comp
;
52
char
sep_rep
;
54
char
sep_escape
;
56
char
sep_subcmp
;
57
59
char
*
encoding
;
61
char
*
version
;
63
char
*
type
;
65
char
*
subtype
;
67
bom_t
*
bom
;
68
69
}
hl7_meta_t
;
70
74
typedef
enum
line_delimiter_t
{
76
DELIM_NONE
= 0,
78
DELIM_CR
,
80
DELIM_LF
,
82
DELIM_CRLF
83
}
line_delimiter_t
;
84
85
#ifdef __cplusplus
86
extern
"C"
{
87
#endif
88
94
hl7_meta_t
*
init_hl7_meta_t
(
void
);
95
102
char
*
hl7_meta_string
(
hl7_meta_t
* meta);
103
112
void
free_hl7_meta
(
hl7_meta_t
*hl7_meta);
113
124
line_delimiter_t
find_line_delimiter
(FILE* fd);
125
171
int
read_meta
(
hl7_meta_t
*hl7_meta, FILE *fd);
172
173
#ifdef __cplusplus
174
}
175
#endif
bom_t
Byte Order MArk (BOM) information of a file. This struct is created by detect_bom() ...
Definition:
bom.h:72
hl7_meta_t::field_length
int field_length
Definition:
meta.h:35
hl7_meta_t::sep_subcmp
char sep_subcmp
Definition:
meta.h:56
hl7_meta_t::sep_escape
char sep_escape
Definition:
meta.h:54
find_line_delimiter
line_delimiter_t find_line_delimiter(FILE *fd)
find line delimiter
Definition:
meta.c:102
hl7_meta_t
struct hl7_meta_t hl7_meta_t
HL7 Seperator configuration.
hl7_meta_t::sep_rep
char sep_rep
Definition:
meta.h:52
read_meta
int read_meta(hl7_meta_t *hl7_meta, FILE *fd)
read up until the 2nd field delimiter
Definition:
meta.c:130
hl7_meta_t::sep_comp
char sep_comp
Definition:
meta.h:50
hl7_meta_t::encoding
char * encoding
Definition:
meta.h:59
hl7_meta_t::sep_message
char sep_message
Definition:
meta.h:46
hl7_meta_t
HL7 Seperator configuration.
Definition:
meta.h:33
DELIM_CR
Definition:
meta.h:78
line_delimiter_t
line_delimiter_t
possible line endings
Definition:
meta.h:74
free_hl7_meta
void free_hl7_meta(hl7_meta_t *hl7_meta)
free the data structure
Definition:
meta.c:82
bom.h
find unicode bom
init_hl7_meta_t
hl7_meta_t * init_hl7_meta_t(void)
initialize the seperator data structure
Definition:
meta.c:5
hl7_meta_string
char * hl7_meta_string(hl7_meta_t *meta)
generate printable string of the meta data
Definition:
meta.c:33
hl7_meta_t::sep_field
char sep_field
Definition:
meta.h:48
hl7_meta_t::version
char * version
Definition:
meta.h:61
hl7_meta_t::type
char * type
Definition:
meta.h:63
hl7_meta_t::subtype
char * subtype
Definition:
meta.h:65
DELIM_NONE
Definition:
meta.h:76
hl7_meta_t::bom
bom_t * bom
Definition:
meta.h:67
DELIM_LF
Definition:
meta.h:80
DELIM_CRLF
Definition:
meta.h:82
hl7_meta_t::crlf
int crlf
Definition:
meta.h:43
Generated by
1.8.13