Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

csv_file Struct Reference


Detailed Description

Structure to implement CSV file handle.

Definition at line 43 of file csvtable.c.

Data Fields

FILE * f
 CSV file.

char * sep
 column separator characters

char * quot
 text quoting characters

int isdos
 true, when DOS format detected

int maxl
 max

char * line
 line buffer

long pos0
 file position for rewind

int maxc
 max

int ncols
 number of columns

char ** cols
 column buffer


Field Documentation

char** csv_file::cols
 

column buffer

Definition at line 53 of file csvtable.c.

Referenced by csv_close(), csv_coldata(), csv_getline(), csv_import_func(), csv_ncols(), csv_open(), and csv_vtab_connect().

FILE* csv_file::f
 

CSV file.

Definition at line 44 of file csvtable.c.

Referenced by csv_close(), csv_eof(), csv_getline(), csv_open(), csv_rewind(), csv_seek(), and csv_tell().

int csv_file::isdos
 

true, when DOS format detected

Definition at line 47 of file csvtable.c.

Referenced by csv_getline(), and csv_open().

char* csv_file::line
 

line buffer

Definition at line 49 of file csvtable.c.

Referenced by csv_close(), csv_getline(), and csv_open().

int csv_file::maxc
 

max

capacity of column buffer

Definition at line 51 of file csvtable.c.

Referenced by csv_getline(), and csv_open().

int csv_file::maxl
 

max

capacity of line buffer

Definition at line 48 of file csvtable.c.

Referenced by csv_getline(), and csv_open().

int csv_file::ncols
 

number of columns

Definition at line 52 of file csvtable.c.

Referenced by csv_coldata(), csv_getline(), csv_import_func(), csv_ncols(), csv_open(), and csv_vtab_connect().

long csv_file::pos0
 

file position for rewind

Definition at line 50 of file csvtable.c.

Referenced by csv_guess(), csv_import_func(), csv_open(), csv_rewind(), and csv_vtab_connect().

char* csv_file::quot
 

text quoting characters

Definition at line 46 of file csvtable.c.

Referenced by csv_close(), csv_getline(), csv_guess(), csv_import_func(), csv_open(), and csv_vtab_connect().

char* csv_file::sep
 

column separator characters

Definition at line 45 of file csvtable.c.

Referenced by csv_close(), csv_getline(), csv_guess(), csv_import_func(), csv_open(), and csv_vtab_connect().


The documentation for this struct was generated from the following file:
Generated on 24 Feb 2018 by doxygen.
Contact: chw@ch-werner.de