hl7parse
Public Attributes | List of all members
seg_count Struct Reference

keep track of the number of the same segments in a message_t More...

#include <address.h>

Public Attributes

unsigned int length
 
unsigned int _allocated
 
char ** segments
 
int * count
 

Detailed Description

keep track of the number of the same segments in a message_t

This struct keeps track of the number of segments with the same name. This is important when search certain elements, to make sure we do not overrun buffers.

All memory is allocated dynamically, _allocated keeps track of the length of allocated space in count and segments. length keeps track of the used elements.

The count of a segment can be foudn at the same index in count.

Member Data Documentation

◆ _allocated

unsigned int seg_count::_allocated

size of allocated elements in count and segments

◆ count

int* seg_count::count

array of numbers of segments

◆ length

unsigned int seg_count::length

number of elements stored in count and segments

◆ segments

char** seg_count::segments

array of segment names


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