|
TPCCLIB
|
Find keys and values in IFT. More...
#include "tpcclibConfig.h"#include "tpcextensions.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include <ctype.h>#include <math.h>#include <time.h>#include "tpcift.h"Go to the source code of this file.
Functions | |
| int | iftFindKey (IFT *ift, const char *key, int start_index) |
| int | iftFindPair (IFT *ift, const char *key, const char *value, int start_index) |
| int | iftSearchKey (IFT *ift, const char *s, int start_index) |
| int | iftSearchValue (IFT *ift, const char *s, int start_index) |
| int | iftFindNrOfKeys (IFT *ift, const char *key) |
| void | iftDeleteKey (IFT *ift, const char *key) |
| int | iftGetDoubleValue (IFT *ift, const char *key, int index, double *v) |
| void iftDeleteKey | ( | IFT * | ift, |
| const char * | key ) |
Delete all items which have the the specified key in the IFT.
Key is case insensitive.
| ift | Pointer to existing IFT. |
| key | Pointer to the key string. |
Definition at line 169 of file iftfind.c.
Referenced by imgFillOHeader(), and parWriteCSV().
| int iftFindKey | ( | IFT * | ift, |
| const char * | key, | ||
| int | start_index ) |
Find the IFT item with specified key.
Search is case-insensitive, but otherwise match must be exact.
| ift | Pointer to IFT. |
| key | Key to be searched for. |
| start_index | IFT item index [0..keyNr-1] from which search is started. |
Definition at line 30 of file iftfind.c.
Referenced by abssWrite(), ecatWriteMainheader(), iftCheckKeyValue(), iftCheckKeyValues(), iftDeleteDuplicateKeys(), iftDeleteKey(), iftGetDoubleValue(), micropetHeaderRead(), parAllocateWithTAC(), parFromIFT(), parIsOptcrit(), parIsStudyNr(), parReadCSV(), parReadFIT(), parReadRES(), parSetStudyNr(), parWriteCSV(), parWriteFIT(), parWriteRES(), tacAllocateWithPAR(), tacGetHeaderDecayCorrection(), tacGetHeaderInjectiontime(), tacGetHeaderIsotope(), tacGetHeaderScanstarttime(), tacGetHeaderStudynr(), tacGetHeaderTimeunit(), tacGetHeaderUnit(), tacRead(), tacReadAllogg(), tacReadGEMS(), tacReadOldAllogg(), tacReadScanditronics(), tacSetHeaderDecayCorrection(), tacSetHeaderInjectiontime(), tacSetHeaderIsotope(), tacSetHeaderScanstarttime(), tacSetHeaderStudynr(), tacSetHeaderTimeunit(), and tacSetHeaderUnit().
| int iftFindNrOfKeys | ( | IFT * | ift, |
| const char * | key ) |
Find the nr of exact occurrences of the specified key in the IFT.
Key is case insensitive.
| ift | Pointer to existing IFT. |
| key | Pointer to the key string; if empty or NULL, then the nr of empty keys is returned. |
Definition at line 142 of file iftfind.c.
Referenced by iftCheckKeyValue(), iftCheckKeyValues(), and parFromIFT().
| int iftFindPair | ( | IFT * | ift, |
| const char * | key, | ||
| const char * | value, | ||
| int | start_index ) |
Find the IFT item with specified key and value.
Search is case-insensitive, but otherwise match must be exact.
| ift | Pointer to IFT. |
| key | Key to be searched for. |
| value | Value to be searched for. |
| start_index | IFT item index [0..keyNr-1] from which search is started. |
Definition at line 55 of file iftfind.c.
Referenced by tacRead().
| int iftGetDoubleValue | ( | IFT * | ift, |
| const char * | key, | ||
| int | index, | ||
| double * | v ) |
Finds the specified key string from IFT structure, and reads the corresponding value as double.
| ift | Pointer to existing IFT. |
| key | Pointer to the key string; search is case-insensitive. |
| index | Index [0..keyNr-1] from which the search is started. |
| v | Pointer to double variable where value is written; NaN is written in case of an error. |
Definition at line 191 of file iftfind.c.
Referenced by micropetExists(), and parReadLimits().
| int iftSearchKey | ( | IFT * | ift, |
| const char * | s, | ||
| int | start_index ) |
Find the IFT item where key contains the given search string.
Search is case-insensitive.
| ift | Pointer to IFT. |
| s | String to be searched for in keys. |
| start_index | IFT item index [0..keyNr-1] from which search is started. |
Definition at line 86 of file iftfind.c.
Referenced by abssWrite().
| int iftSearchValue | ( | IFT * | ift, |
| const char * | s, | ||
| int | start_index ) |
Find the IFT item where value contains the given search string.
Search is case-insensitive.
| ift | Pointer to IFT. |
| s | String to be searched for in values. |
| start_index | IFT item index [0..keyNr-1] from which search is started. |
Definition at line 114 of file iftfind.c.
Referenced by parReadRES(), tacRead(), tacReadAllogg(), tacReadGEMS(), and tacReadScanditronics().