hl7parse
Public Attributes | List of all members
raw_field_t Struct Reference

structure to track delmiter fields in a fieldset More...

#include <node.h>

Public Attributes

unsigned char * field
 
unsigned char delim [MAX_FIELDS]
 
unsigned int pos [MAX_FIELDS]
 
unsigned int delim_l
 
size_t length
 

Detailed Description

structure to track delmiter fields in a fieldset

This is a private data structure for parse_segment(). It keeps track of all delimiters in a segment while looping over it byte by byte. process_node() the uses it to calculate bounds and structure of the message while extracting the data and structure.

This is a parser internal structure used to keep track of delimiters.

Note
do not use outside of parse_segment()
Bug:
move into parser, this is not being used by the node facilities at all.

Member Data Documentation

◆ delim

unsigned char raw_field_t::delim[MAX_FIELDS]

array of delimiter characters

◆ delim_l

unsigned int raw_field_t::delim_l

length of the delimiter array

◆ field

unsigned char* raw_field_t::field

byte array containing the raw field character data including delimiters

◆ length

size_t raw_field_t::length

length of the field's data

◆ pos

unsigned int raw_field_t::pos[MAX_FIELDS]

array of positions of the above delimiting characters


The documentation for this struct was generated from the following file: