|
TPCCLIB
|
I/O functions for DFT 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 | tacNameSplit (const char *rname, char *name1, char *name2, char *name3, unsigned int max_name_len) |
| int | tacWriteDFT (TAC *tac, FILE *fp, int extra, TPCSTATUS *status) |
| int | tacReadDFT (TAC *tac, CSV *csv, IFT *hdr, TPCSTATUS *status) |
| int tacNameSplit | ( | const char * | rname, |
| char * | name1, | ||
| char * | name2, | ||
| char * | name3, | ||
| unsigned int | max_name_len ) |
Split TAC name into 1-3 subparts of given max length.
| rname | TAC name to split |
| name1 | Pointer to 1st subname (usually anatomical region); NULL if not needed |
| name2 | Pointer to 2nd subname (usually hemisphere); NULL if not needed |
| name3 | Pointer to 3rd subname (usually image plane); NULL if not needed |
| max_name_len | Max length of subnames, excluding terminal null |
Definition at line 26 of file dftio.c.
Referenced by tacWriteDFT().
Read DFT format from CSV structure into TAC structure.
| tac | Pointer to TAC structure, into which are to be written; any previous contents are deleted. |
| csv | Pointer to CSV from which data is read; it must contain at least one or two x columns and one y column. |
| hdr | Pointer to possible header data, which, if available, is copied to TAC as a processed version; enter NULL if not available |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 300 of file dftio.c.
Referenced by tacRead().
Write TAC data into specified file pointer in DFT 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 |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 119 of file dftio.c.
Referenced by tacWrite().