|
TPCCLIB
|
Get or set TAC header content from IFT struct stored inside TAC struct. More...
#include "tpcclibConfig.h"#include "tpcift.h"#include "tpcisotope.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 | tacGetHeaderStudynr (IFT *h, char *s, TPCSTATUS *status) |
| int | tacSetHeaderStudynr (IFT *h, const char *s) |
| int | tacSetHeaderUnit (IFT *h, int u) |
| int | tacGetHeaderUnit (TAC *tac, TPCSTATUS *status) |
| int | tacSetHeaderTimeunit (IFT *h, int u) |
| int | tacGetHeaderTimeunit (TAC *tac, TPCSTATUS *status) |
| int | tacGetHeaderIsotope (IFT *h, char *s, TPCSTATUS *status) |
| int | tacSetHeaderIsotope (IFT *h, const char *s) |
| int | tacGetHeaderScanstarttime (IFT *h, char *s, TPCSTATUS *status) |
| int | tacSetHeaderScanstarttime (IFT *h, const char *s) |
| int | tacGetHeaderInjectiontime (IFT *h, char *s, TPCSTATUS *status) |
| int | tacSetHeaderInjectiontime (IFT *h, const char *s) |
| decaycorrection | tacGetHeaderDecayCorrection (IFT *h) |
| int | tacSetHeaderDecayCorrection (IFT *h, decaycorrection dc) |
Get or set TAC header content from IFT struct stored inside TAC struct.
Definition in file tacift.c.
| decaycorrection tacGetHeaderDecayCorrection | ( | IFT * | h | ) |
Get the status of decay correction from TAC struct header.
| h | Pointer to TAC header structure. |
Definition at line 548 of file tacift.c.
Get injection time from TAC structure header.
| h | Pointer to TAC header structure. |
| s | Pointer to preallocated string of length 19+1 (at least); enter NULL if you only want to test if header contains injection time. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 462 of file tacift.c.
Get isotope from TAC struct header.
| h | Pointer to TAC header structure. |
| s | Pointer to preallocated string of length MAX_ISOTOPE_LEN+1 (at least); enter NULL if you only want to test if header contains isotope code. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 290 of file tacift.c.
Referenced by abssWrite(), tacGetIsotope(), tacReadSIF(), and tacWriteSIF().
Get scan start time from TAC structure header.
| h | Pointer to TAC header structure. |
| s | Pointer to preallocated string of length 19+1 (at least); enter NULL if you only want to test if header contains scan start time. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 372 of file tacift.c.
Referenced by abssWrite(), imgFromSIF(), tacReadSIF(), and tacWriteSIF().
Get study number from TAC struct header.
| h | Pointer to TAC header struct |
| s | Pointer to preallocated string of length MAX_STUDYNR_LEN+1 (at least); enter NULL if you only want to test whether header contains studynr |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 26 of file tacift.c.
Referenced by abssWrite(), imgFromSIF(), tacRead(), tacReadSIF(), tacWriteCSV(), tacWriteDFT(), and tacWriteSIF().
Get time (x) unit from TAC struct header and write to main TAC struct.
| tac | Pointer to TAC struct |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 234 of file tacift.c.
Referenced by tacReadCSV(), tacReadDFT(), tacReadPMOD(), and tacReadSimple().
Get concentration (y) unit from TAC struct header and write to main TAC struct.
| tac | Pointer to TAC struct |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 145 of file tacift.c.
Referenced by tacReadCSV(), tacReadDFT(), tacReadPMOD(), and tacReadSimple().
| int tacSetHeaderDecayCorrection | ( | IFT * | h, |
| decaycorrection | dc ) |
Set the status of decay correction in TAC structure header. Any previous status is deleted.
| h | Pointer to TAC header structure. |
| dc | Status of decay correction: DECAY_UNKNOWN, DECAY_NOTCORRECTED, or DECAY_CORRECTED. |
Definition at line 578 of file tacift.c.
Referenced by tacDecayCorrection().
| int tacSetHeaderInjectiontime | ( | IFT * | h, |
| const char * | s ) |
Set injection time in TAC structure header. Any previous injection time items are deleted.
| h | Pointer to TAC header structure. |
| s | Pointer to string containing the injection time in international format YYYY-MM-DD hh:mm:ss ; enter NULL or "" if you only want to delete it in header. |
Definition at line 515 of file tacift.c.
| int tacSetHeaderIsotope | ( | IFT * | h, |
| const char * | s ) |
Set isotope in TAC structure header. Any previous isotope items are deleted.
| h | Pointer to TAC header structure. |
| s | Pointer to string containing the isotope; enter NULL or "" if you only want to delete isotope in header. |
Definition at line 341 of file tacift.c.
Referenced by tacReadSIF(), and tacSetIsotope().
| int tacSetHeaderScanstarttime | ( | IFT * | h, |
| const char * | s ) |
Set scan start time in TAC structure header. Any previous scan start items are deleted.
| h | Pointer to TAC header structure. |
| s | Pointer to string containing the scan start time in international format YYYY-MM-DD hh:mm:ss ; enter NULL or "" if you only want to delete it in header. |
Definition at line 427 of file tacift.c.
Referenced by imgToSIF(), tacReadAllogg(), tacReadGEMS(), tacReadOldAllogg(), tacReadScanditronics(), and tacReadSIF().
| int tacSetHeaderStudynr | ( | IFT * | h, |
| const char * | s ) |
Set study number in TAC struct header. Any previous studynr items are deleted.
| h | Pointer to TAC header struct |
| s | Pointer to string containing the study number; enter NULL or "" if you only want to delete studynr in header |
Definition at line 79 of file tacift.c.
Referenced by imgToSIF(), tacRead(), tacReadAllogg(), tacReadCSV(), tacReadDFT(), tacReadGEMS(), tacReadMat(), tacReadScanditronics(), tacReadSIF(), and tacWriteDFT().
| int tacSetHeaderTimeunit | ( | IFT * | h, |
| int | u ) |
Set time (x) unit in TAC struct header. Any previous x units are deleted.
| h | Pointer to TAC header struct |
| u | Unit enum |
Definition at line 201 of file tacift.c.
Referenced by tacGetHeaderTimeunit(), tacReadCSV(), tacReadDFT(), and tacReadPMOD().
| int tacSetHeaderUnit | ( | IFT * | h, |
| int | u ) |
Set concentration (y) unit in TAC struct header. Any previous y unit items are deleted.
| h | Pointer to TAC header struct |
| u | Unit enum |
Definition at line 112 of file tacift.c.
Referenced by tacGetHeaderUnit(), tacReadCSV(), tacReadDFT(), tacReadPMOD(), and tacWriteDFT().