|
libdsproc3
2.0
|
CSV Parsing Structure. More...
#include <dsproc3.h>
Data Fields | |
| char * | file_path |
| path to the directory the file is in | |
| char * | file_name |
| name of the file | |
| struct stat | file_stats |
| file stats | |
| char * | file_data |
| in memory copy of the parsed data file | |
| int | nlines |
| number of lines in the file | |
| char ** | lines |
| array of line pointers | |
| int | linenum |
| current line number | |
| char * | linep |
| pointer to the current line in memory | |
| char ** | headers |
| pointers to the header fields | |
| char *** | values |
| pointers to the field values | |
| int | nfields |
| number of fields per record | |
| int | nrecs |
| number of records | |
| char * | header_data |
| parsed copy of header line | |
| int * | free_header |
| only used when adding headers manually | |
| char ** | rec_buff |
| buffer used to parse record lines | |
| int | nbytes_alloced |
| allocated length of the file_data array | |
| int | nlines_alloced |
| allocated length of the lines array | |
| int | nfields_alloced |
| number of fields allocated | |
| int | nrecs_alloced |
| number of records allocated | |
| char | delim |
| CSV column delimiter. | |
| int | nlines_guess |
| estimated number of lines in a file | |
| int | nfields_guess |
| only used when adding headers manually | |
| RETimeList * | ft_patterns |
| compiled list of file time patterns | |
| RETimeRes * | ft_result |
| file time used internally | |
| int | ntc |
| number of time columns | |
| char ** | tc_names |
| list of time column names | |
| RETimeList ** | tc_patterns |
| compiled list of time string patterns | |
| int * | tc_index |
| indexes of time columns | |
| timeval_t * | tvs |
| array of record times | |
| time_t | time_offset |
| offset to apply to record times | |
| struct tm | base_tm |
| base time to use for record times | |
| int | tro_threshold |
| threshold used to detect time rollovers | |
| time_t | tro_offset |
| offset used to track time rollovers | |