|
TPCCLIB
|
Get processed contents from IFT. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcift.h"Go to the source code of this file.
Functions | |
| int | iftGetFloat (IFT *ift, int index, float *v) |
| int | iftGetDouble (IFT *ift, int index, double *v) |
| int | iftGetInt (IFT *ift, int index, int *v) |
| int | iftGetUInt (IFT *ift, int index, unsigned int *v) |
| int | iftGetDoubleWithUnit (IFT *ift, int index, double *v, int *unitunit) |
| int iftGetDouble | ( | IFT * | ift, |
| int | index, | ||
| double * | v ) |
Read the value in IFT as a double from given item index.
Value in IFT must not contain decimal comma.
| ift | Pointer to IFT |
| index | IFT item index |
| v | Pointer to double which is read from item value. It will be set to NaN in case of an error. |
Definition at line 52 of file iftget.c.
Referenced by parFromIFT().
| int iftGetDoubleWithUnit | ( | IFT * | ift, |
| int | index, | ||
| double * | v, | ||
| int * | unit ) |
Read the value in IFT as a double with unit from given item index.
Value in IFT is allowed to be written with decimal comma, and units may be written in pars () or [].
| ift | Pointer to IFT |
| index | IFT item index |
| v | Pointer to double which is read from item value. It will be set to NaN in case of an error. |
| unit | Pointer for unit (enum unit) which is read from item value. It will be to 0 (enum UNIT_UNKNOWN) if not identified or not present. |
Definition at line 129 of file iftget.c.
Referenced by parReadCSV().
| int iftGetFloat | ( | IFT * | ift, |
| int | index, | ||
| float * | v ) |
Read the value in IFT as a float from given item index.
Value in IFT must not contain decimal comma.
| int iftGetInt | ( | IFT * | ift, |
| int | index, | ||
| int * | v ) |
Read the value in IFT as an integer from given item index.
| ift | Pointer to IFT |
| index | IFT item index |
| v | Pointer to int which is read from item value. It will be set to -9999 in case of an error. |
Definition at line 76 of file iftget.c.
Referenced by parFromIFT(), and parReadCSV().
| int iftGetUInt | ( | IFT * | ift, |
| int | index, | ||
| unsigned int * | v ) |
Read the value in IFT as an unsigned integer from given item index.
| ift | Pointer to IFT |
| index | IFT item index |
| v | Pointer to unsigned int which is read from item value. It will be set to 0 in case of an error. |
Definition at line 101 of file iftget.c.
Referenced by parFromIFT().