My Project
|
#include "include/sif.h"
Go to the source code of this file.
Functions | |
int | sifRead (char *filename, SIF *data) |
int | sifWrite (SIF *data, char *filename) |
void | sifPrint (SIF *data) |
void sifPrint | ( | SIF * | data | ) |
Prints to stdout the contents of SIF data structure.
data | Pointer to SIF struct |
Definition at line 224 of file sifio.c.
References SIF::frameNr, SIF::isotope_name, SIF::prompts, SIF::randoms, SIF::scantime, SIF::trues, SIF::weights, SIF::x1, and SIF::x2.
int sifRead | ( | char * | filename, |
SIF * | data | ||
) |
Reads SIF file contents to the specified data structure. Weights are set to 1.
filename | SIF filename to be read |
data | Pointer to initiated SIF struct; any existing contents will be deleted |
Definition at line 64 of file sifio.c.
References SIF::colNr, SIF::frameNr, SIF::isotope_name, SIF::prompts, SIF::randoms, SIF::scantime, SIF_TEST, sifEmpty(), siferrmsg, sifSetmem(), SIF::studynr, SIF::trues, SIF::version, SIF::weights, SIF::x1, and SIF::x2.
Referenced by imgReadAnalyze(), imgReadAnalyzeFrame(), and imgReadAnalyzeHeader().
int sifWrite | ( | SIF * | data, |
char * | filename | ||
) |
Write SIF data to a standard SIF file, emptying files old contents.
data | Pointer to SIF struct containing data to be written in file |
filename | Filename for SIF; file is overwritten without backup |
Definition at line 167 of file sifio.c.
References SIF::colNr, SIF::frameNr, SIF::isotope_name, SIF::prompts, SIF::randoms, SIF::scantime, SIF_TEST, siferrmsg, SIF::studynr, SIF::version, SIF::x1, and SIF::x2.