#include <stdio.h>#include <unistd.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <math.h>#include "studynr.h"#include "include/dft.h"#include "include/dftunit.h"#include "include/ncifile.h"Go to the source code of this file.
Defines | |
| #define | ROIKBQ_MAX_LINE_LEN 8192 |
Functions | |
| void | roikbq_strip_spaces (char *s) |
| void | roikbq_move_to_next_line (FILE *fp) |
| int | roikbq_fgets (FILE *fp, int nr, char *s) |
| int | roikbqWrite (DFT *dft, char *fname) |
| int | roikbqRead (char *fname, DFT *dft) |
| #define ROIKBQ_MAX_LINE_LEN 8192 |
Definition at line 61 of file ncifile.c.
Referenced by roikbqRead().
| int roikbq_fgets | ( | FILE * | fp, |
| int | nr, | ||
| char * | s | ||
| ) |
Definition at line 332 of file ncifile.c.
Referenced by roikbqRead().
| void roikbq_move_to_next_line | ( | FILE * | fp | ) |
Definition at line 316 of file ncifile.c.
Referenced by roikbqRead().
| void roikbq_strip_spaces | ( | char * | s | ) |
Definition at line 304 of file ncifile.c.
Referenced by roikbqRead().
| int roikbqRead | ( | char * | fname, |
| DFT * | dft | ||
| ) |
Read an old TAC file in *.roi.kbq / *.roi.nci format.
| fname | Pointer to filename |
| dft | Pointer to an empty but initiated DFT structure where data is written |
Definition at line 139 of file ncifile.c.
References DFT::_type, dftEmpty(), dfterrmsg, dftSetmem(), DFT::frameNr, Voi::hemisphere, DFT::isweight, Voi::name, Voi::place, roikbq_fgets(), ROIKBQ_MAX_LINE_LEN, roikbq_move_to_next_line(), roikbq_strip_spaces(), Voi::size, DFT::studynr, DFT::timetype, DFT::timeunit, DFT::unit, DFT::voi, Voi::voiname, DFT::voiNr, DFT::w, DFT::x, DFT::x1, DFT::x2, and Voi::y.
Referenced by dftRead().
| int roikbqWrite | ( | DFT * | dft, |
| char * | fname | ||
| ) |
Write DFT contents in *.roi.kbq format.
Definition at line 73 of file ncifile.c.
References BACKUP_EXTENSION, dfterrmsg, DFT::frameNr, Voi::hemisphere, Voi::place, Voi::size, DFT::studynr, DFT::voi, Voi::voiname, DFT::voiNr, DFT::x, and Voi::y.
1.8.0