|
TPCCLIB
|
I/O functions for CSV and TSV TAC file format. More...
#include "tpcclibConfig.h"#include "tpcift.h"#include "tpcisotope.h"#include "tpccsv.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpctac.h"Go to the source code of this file.
Functions | |
| int | tacWriteCSV (TAC *tac, FILE *fp, int extra, tacformat format, TPCSTATUS *status) |
| int | tacReadCSV (TAC *tac, CSV *csv, IFT *hdr, TPCSTATUS *status) |
| int | tacReadInveonCSV (TAC *tac, CSV *csv, TPCSTATUS *status) |
| int | tacReadCarimasTxt (TAC *tac, CSV *csv, TPCSTATUS *status) |
Read Carimas TXT TAC format from CSV struct into TAC struct.
| tac | Pointer to TAC struct, contents of which are to be written. |
| csv | Pointer to CSV from which data is read; if it contains only one column, then it is assumed to represent the first y column and x column is not filled. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 631 of file taccsv.c.
Referenced by tacRead().
Read CSV TAC format from CSV struct into TAC struct.
| tac | Pointer to TAC struct, contents of which are to be written. |
| csv | Pointer to CSV from which data is read; if it contains only one column, then it is assumed to represent the first y column and x column is not filled. |
| hdr | Pointer to possible header data, which, if available, if processed and copied to TAC too; enter NULL if not available. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 212 of file taccsv.c.
Referenced by tacRead().
Read Inveon TAC format from CSV struct into TAC struct.
Note that there are several Inveon TAC formats, and not all are supported.
| tac | Pointer to TAC struct, contents of which are to be written. |
| csv | Pointer to Inveon CSV from which data is read. |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 405 of file taccsv.c.
Referenced by tacRead().
Write TAC data into specified file pointer in CSV TAC format.
| tac | Pointer to TAC struct, contents of which are to be written |
| fp | File pointer |
| extra | Write (1) or do not write (0) also extra header fields found in IFT; note that these are not supported by other than TPC SW. |
| format | File format code; accepted values are TAC_FORMAT_CSV_UK, TAC_FORMAT_CSV_INT, TAC_FORMAT_TSV_UK, TAC_FORMAT_TSV_INT, and TAC_FORMAT_UNKNOWN (0); this last one uses format inside TAC struct, or if that is invalid, then the default format TAC_FORMAT_CSV_UK |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 26 of file taccsv.c.
Referenced by tacWrite().