rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
log_analysis_t Struct Reference

Result of the analysis of a whole file. More...

#include <log_csv.h>

Data Fields

char delimiter
log_conv_t convention
bool convention_forced
bool convention_confident
bool convention_conflict
log_votes_t votes
log_ambig_t ambiguous_as
int n_columns
log_column_t columns [LOG_MAX_COLUMNS]
int time_index
char time_unit [LOG_UNIT_MAX]
int row_count
int ragged_rows
int long_rows
int max_fields
bool truncated
bool cut_row
 The file ends inside a row, without its line feed.

Detailed Description

Result of the analysis of a whole file.

Field Documentation

◆ ambiguous_as

log_ambig_t log_analysis_t::ambiguous_as

how an ambiguous cell reads

◆ columns

log_column_t log_analysis_t::columns[LOG_MAX_COLUMNS]

one per column

◆ convention

log_conv_t log_analysis_t::convention

decimal convention

◆ convention_confident

bool log_analysis_t::convention_confident

the detected convention is sure

◆ convention_conflict

bool log_analysis_t::convention_conflict

the evidence disagrees

◆ convention_forced

bool log_analysis_t::convention_forced

set by the caller

◆ cut_row

bool log_analysis_t::cut_row

The file ends inside a row, without its line feed.

That row is left out of row_count and of every figure: a write cut off mid-row leaves a number that is wrong and still parses.

◆ delimiter

char log_analysis_t::delimiter

field delimiter

◆ long_rows

int log_analysis_t::long_rows

rows too long for the field store; cells were lost

◆ max_fields

int log_analysis_t::max_fields

most fields in one row

◆ n_columns

int log_analysis_t::n_columns

columns found

◆ ragged_rows

int log_analysis_t::ragged_rows

rows whose field count differs from the header

◆ row_count

int log_analysis_t::row_count

rows read

◆ time_index

int log_analysis_t::time_index

-1 when there is none; then the x axis is the index

◆ time_unit

char log_analysis_t::time_unit[LOG_UNIT_MAX]

unit of the time column

◆ truncated

bool log_analysis_t::truncated

the row cap was hit; row_count is what was read

◆ votes

log_votes_t log_analysis_t::votes

evidence for each convention


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