NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include "./ReadWave.h"
Go to the source code of this file.
Functions | |
static void | ReorderBytes (void *p, int bytesPerPoint, long numValues) |
static void | ReorderShort (void *sp) |
static void | ReorderLong (void *lp) |
static void | ReorderDouble (void *dp) |
static void | ReorderBinHeader1 (BinHeader1 *p) |
static void | ReorderBinHeader2 (BinHeader2 *p) |
static void | ReorderBinHeader3 (BinHeader3 *p) |
static void | ReorderBinHeader5 (BinHeader5 *p) |
static void | ReorderWaveHeader2 (WaveHeader2 *p) |
static void | ReorderWaveHeader5 (WaveHeader5 *p) |
static int | Checksum (short *data, int needToReorderBytes, int oldcksum, int numbytes) |
static int | NumBytesPerPoint (int type) |
static int | LoadNumericWaveData (CP_FILE_REF fr, int type, long npnts, unsigned long waveDataSize, int needToReorderBytes, void **pp) |
int | ReadWave (CP_FILE_REF fr, int *typePtr, long *npntsPtr, long *ndimptr, double *sfa, double *sfb, void **waveDataPtrPtr, char **name) |
|
static |
Definition at line 160 of file ReadWave.cpp.
References ReorderShort().
Referenced by ReadWave().
|
static |
Definition at line 227 of file ReadWave.cpp.
References CPReadFile(), NumBytesPerPoint(), and ReorderBytes().
Referenced by ReadWave().
|
static |
Definition at line 179 of file ReadWave.cpp.
References NT_CMPLX, NT_FP32, NT_FP64, NT_I16, NT_I32, NT_I8, and NT_UNSIGNED.
Referenced by LoadNumericWaveData().
int ReadWave | ( | CP_FILE_REF | fr, |
int * | typePtr, | ||
long * | npntsPtr, | ||
long * | ndimptr, | ||
double * | sfa, | ||
double * | sfb, | ||
void ** | waveDataPtrPtr, | ||
char ** | name | ||
) |
Definition at line 295 of file ReadWave.cpp.
References WaveHeader2::bname, WaveHeader5::bname, Checksum(), CPGetFilePosition(), CPReadFile(), CPSetFilePosition(), WaveHeader2::hsA, WaveHeader2::hsB, LoadNumericWaveData(), WaveHeader2::modDate, WaveHeader5::modDate, name, WaveHeader5::nDim, WaveHeader2::npnts, WaveHeader5::npnts, ReorderBinHeader1(), ReorderBinHeader2(), ReorderBinHeader3(), ReorderBinHeader5(), ReorderShort(), ReorderWaveHeader2(), ReorderWaveHeader5(), WaveHeader5::sfA, WaveHeader5::sfB, WaveHeader2::type, WaveHeader5::type, dtl::version, BinHeader1::wfmSize, BinHeader2::wfmSize, BinHeader3::wfmSize, and BinHeader5::wfmSize.
Referenced by NumeRe::IgorBinaryWave::readFile().
|
static |
Definition at line 42 of file ReadWave.cpp.
References BinHeader1::checksum, ReorderLong(), ReorderShort(), BinHeader1::version, and BinHeader1::wfmSize.
Referenced by ReadWave().
|
static |
Definition at line 50 of file ReadWave.cpp.
References BinHeader2::checksum, BinHeader2::noteSize, BinHeader2::pictSize, ReorderLong(), ReorderShort(), BinHeader2::version, and BinHeader2::wfmSize.
Referenced by ReadWave().
|
static |
Definition at line 60 of file ReadWave.cpp.
References BinHeader3::checksum, BinHeader3::formulaSize, BinHeader3::noteSize, BinHeader3::pictSize, ReorderLong(), ReorderShort(), BinHeader3::version, and BinHeader3::wfmSize.
Referenced by ReadWave().
|
static |
Definition at line 71 of file ReadWave.cpp.
References BinHeader5::checksum, BinHeader5::dataEUnitsSize, BinHeader5::dimEUnitsSize, BinHeader5::dimLabelsSize, BinHeader5::formulaSize, BinHeader5::noteSize, BinHeader5::optionsSize1, BinHeader5::optionsSize2, ReorderBytes(), ReorderLong(), ReorderShort(), BinHeader5::sIndicesSize, BinHeader5::version, and BinHeader5::wfmSize.
Referenced by ReadWave().
|
static |
Definition at line 5 of file ReadWave.cpp.
Referenced by LoadNumericWaveData(), ReorderBinHeader5(), ReorderDouble(), ReorderLong(), ReorderShort(), and ReorderWaveHeader5().
|
static |
Definition at line 36 of file ReadWave.cpp.
References ReorderBytes().
Referenced by ReorderWaveHeader2(), and ReorderWaveHeader5().
|
static |
Definition at line 30 of file ReadWave.cpp.
References ReorderBytes().
Referenced by ReorderBinHeader1(), ReorderBinHeader2(), ReorderBinHeader3(), ReorderBinHeader5(), ReorderWaveHeader2(), and ReorderWaveHeader5().
|
static |
Definition at line 24 of file ReadWave.cpp.
References ReorderBytes().
Referenced by Checksum(), ReadWave(), ReorderBinHeader1(), ReorderBinHeader2(), ReorderBinHeader3(), ReorderBinHeader5(), ReorderWaveHeader2(), and ReorderWaveHeader5().
|
static |
Definition at line 87 of file ReadWave.cpp.
References WaveHeader2::aModified, WaveHeader2::botFullScale, WaveHeader2::creationDate, WaveHeader2::depID, WaveHeader2::fileName, WaveHeader2::formula, WaveHeader2::fsValid, WaveHeader2::hsA, WaveHeader2::hsB, WaveHeader2::modDate, WaveHeader2::next, WaveHeader2::npnts, ReorderDouble(), ReorderLong(), ReorderShort(), WaveHeader2::srcFldr, WaveHeader2::swModified, WaveHeader2::topFullScale, WaveHeader2::type, WaveHeader2::waveNoteH, WaveHeader2::whVersion, and WaveHeader2::wModified.
Referenced by ReadWave().
|
static |
Definition at line 118 of file ReadWave.cpp.
References WaveHeader5::aModified, WaveHeader5::botFullScale, WaveHeader5::creationDate, WaveHeader5::dataEUnits, WaveHeader5::depID, WaveHeader5::dFolder, WaveHeader5::dimEUnits, WaveHeader5::dimLabels, WaveHeader5::dLock, WaveHeader5::fileName, WaveHeader5::formula, WaveHeader5::fsValid, WaveHeader5::modDate, WaveHeader5::nDim, WaveHeader5::next, WaveHeader5::npnts, ReorderBytes(), ReorderDouble(), ReorderLong(), ReorderShort(), WaveHeader5::sfA, WaveHeader5::sfB, WaveHeader5::sIndices, WaveHeader5::srcFldr, WaveHeader5::swModified, WaveHeader5::topFullScale, WaveHeader5::type, WaveHeader5::waveNoteH, WaveHeader5::whpad2, WaveHeader5::whpad3, WaveHeader5::whpad4, WaveHeader5::whUnused, WaveHeader5::whVersion, and WaveHeader5::wModified.
Referenced by ReadWave().