TPCCLIB
|
I/O functions for CSV files (comma-separated values). More...
#include "libtpccurveio.h"
Go to the source code of this file.
Functions | |
void | csvInit (CSV *csv) |
void | csvEmpty (CSV *csv) |
int | csvRead (CSV *csv, char *fname) |
int | csv2dft (CSV *csv, DFT *dft) |
int | csv2dft_a (CSV *csv, DFT *dft) |
int | csv2dft_b (CSV *csv, DFT *dft) |
int | csv2dft_linkset (CSV *csv, DFT *dft) |
int | csv2dft_mat (CSV *csv, DFT *dft) |
int | csvIsRegular (CSV *csv) |
char * | csvCell (CSV *csv, int row, int col) |
Variables | |
int | CSV_TEST |
Reads different CSV formats into DFT struct
csv | Pointer to CSV data to be converted |
dft | Pointer to empty DFT struct which will be allocated and filled here |
Definition at line 200 of file csv.c.
Referenced by dftRead().
Reads simple and Inveon type 1 data into DFT struct
csv | Pointer to CSV data to be converted |
dft | Pointer to empty DFT struct which will be allocated and filled here |
Definition at line 262 of file csv.c.
Referenced by csv2dft().
Reads Inveon type 2 data into DFT struct
csv | Pointer to CSV data to be converted |
dft | Pointer to empty DFT struct which will be allocated and filled here |
Definition at line 458 of file csv.c.
Referenced by csv2dft().
Reads LinkSet data into DFT struct.
csv | Pointer to CSV data to be converted |
dft | Pointer to empty DFT struct which will be allocated and filled here |
Definition at line 584 of file csv.c.
Referenced by csv2dft().
Reads Mat data into DFT struct.
csv | Pointer to CSV data to be converted |
dft | Pointer to empty DFT struct which will be allocated and filled here |
Definition at line 713 of file csv.c.
Referenced by csv2dft().
char * csvCell | ( | CSV * | csv, |
int | row, | ||
int | col ) |
Get the CVS field contents in specified row and column.
Definition at line 827 of file csv.c.
Referenced by csv2dft_mat().
void csvEmpty | ( | CSV * | csv | ) |
void csvInit | ( | CSV * | csv | ) |
int csvIsRegular | ( | CSV * | csv | ) |
Check whether CSV is regular, that is, each row contain the same number of columns.
csv | Pointer to CSV |
Definition at line 803 of file csv.c.
Referenced by csv2dft_mat().
int csvRead | ( | CSV * | csv, |
char * | fname ) |
Read CSV file.
csv | Pointer to CSV struct |
fname | Filename |
Definition at line 42 of file csv.c.
Referenced by dftFormat(), and dftRead().
int CSV_TEST |
Verbose prints from CSV functions.
Definition at line 6 of file csv.c.
Referenced by csv2dft(), csv2dft_a(), csv2dft_b(), csv2dft_linkset(), csv2dft_mat(), csvRead(), dftFormat(), and dftRead().