Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Data Fields
trace Struct Reference

The trace object context. Maintains the trace object's state. More...

#include <tracep.h>

Collaboration diagram for trace:
Collaboration graph
[legend]

Data Fields

void * vpMem
 Pointer to the memory context to use for all memory allocation.1. More...
 
exceptionspException
 Pointer to the exception to use to report fatal errors back to the parser's catch block. More...
 
void * vpLog
 Pointer to a message log object for reporting configuration errors. More...
 
parser * spParserCtx
 Pointer back to the parent parser's context. More...
 
char * cpFileName
 Name of the file to display the trace records to. More...
 
void * vpVecFileName
 Vector to allocate and re-allocate the memory for the file name. More...
 
FILE * spOut
 Pointer to the open output file. More...
 
FILE * spOpenFile
 Pointer to any other open file. More...
 
void * vpLookaroundStack
 Pointer to a stack require to keep track of when tracing in look around mode. More...
 
aint uiThisRecord
 Index of the current trace record. More...
 
aint uiTreeDepth
 The current full parse tree depth. More...
 
aint uiTreeDepthMax
 The maximum full parse tree depth achieved. More...
 
int iTraceDepth
 The current (possibly partial) traced node depth. More...
 
int iTraceDepthMax
 The maximum (possibly partial) traced node depth. More...
 
int iTraceDepthMin
 The minimum (possibly partial) traced node depth. More...
 
char * cpBuf
 May be greater than zero if configured to not display the first N records. More...
 
aint uiBufSize
 Size of the scratch buffer. More...
 
trace_config sConfig
 Pointer to the trace configuration. More...
 

Detailed Description

The trace object context. Maintains the trace object's state.

Definition at line 91 of file tracep.h.

Field Documentation

◆ cpBuf

char* trace::cpBuf

May be greater than zero if configured to not display the first N records.

Pointer to a scratch buffer.

Definition at line 108 of file tracep.h.

◆ cpFileName

char* trace::cpFileName

Name of the file to display the trace records to.

Definition at line 96 of file tracep.h.

◆ iTraceDepth

int trace::iTraceDepth

The current (possibly partial) traced node depth.

Definition at line 104 of file tracep.h.

◆ iTraceDepthMax

int trace::iTraceDepthMax

The maximum (possibly partial) traced node depth.

Definition at line 105 of file tracep.h.

◆ iTraceDepthMin

int trace::iTraceDepthMin

The minimum (possibly partial) traced node depth.

Definition at line 106 of file tracep.h.

◆ sConfig

trace_config trace::sConfig

Pointer to the trace configuration.

Definition at line 110 of file tracep.h.

◆ spException

exception* trace::spException

Pointer to the exception to use to report fatal errors back to the parser's catch block.

Definition at line 93 of file tracep.h.

◆ spOpenFile

FILE* trace::spOpenFile

Pointer to any other open file.

Definition at line 99 of file tracep.h.

◆ spOut

FILE* trace::spOut

Pointer to the open output file.

Definition at line 98 of file tracep.h.

◆ spParserCtx

parser* trace::spParserCtx

Pointer back to the parent parser's context.

Definition at line 95 of file tracep.h.

◆ uiBufSize

aint trace::uiBufSize

Size of the scratch buffer.

Definition at line 109 of file tracep.h.

◆ uiThisRecord

aint trace::uiThisRecord

Index of the current trace record.

Definition at line 101 of file tracep.h.

◆ uiTreeDepth

aint trace::uiTreeDepth

The current full parse tree depth.

Definition at line 102 of file tracep.h.

◆ uiTreeDepthMax

aint trace::uiTreeDepthMax

The maximum full parse tree depth achieved.

Definition at line 103 of file tracep.h.

◆ vpLog

void* trace::vpLog

Pointer to a message log object for reporting configuration errors.

Definition at line 94 of file tracep.h.

◆ vpLookaroundStack

void* trace::vpLookaroundStack

Pointer to a stack require to keep track of when tracing in look around mode.

Definition at line 100 of file tracep.h.

◆ vpMem

void* trace::vpMem

Pointer to the memory context to use for all memory allocation.1.

Definition at line 92 of file tracep.h.

◆ vpVecFileName

void* trace::vpVecFileName

Vector to allocate and re-allocate the memory for the file name.

Definition at line 97 of file tracep.h.


The documentation for this struct was generated from the following file:
APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.