|  | NumeRe v1.1.4
    NumeRe: Framework für Numerische Rechnungen | 
#include <ctype.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <stddef.h>#include "CrossPlatformFileIO.h"Go to the source code of this file.
| Functions | |
| int | CPCreateFile (const char *fullFilePath, int overwrite, long macCreator, long macFileType) | 
| int | CPDeleteFile (const char *fullFilePath) | 
| int | CPOpenFile (const char *fullFilePath, int readOrWrite, CP_FILE_REF *fileRefPtr) | 
| int | CPCloseFile (CP_FILE_REF fileRef) | 
| int | CPReadFile (CP_FILE_REF fileRef, unsigned long count, void *buffer, unsigned long *numBytesReadPtr) | 
| int | CPReadFile2 (CP_FILE_REF fileRef, unsigned long count, void *buffer, unsigned long *numBytesReadPtr) | 
| int | CPWriteFile (CP_FILE_REF fileRef, unsigned long count, const void *buffer, unsigned long *numBytesWrittenPtr) | 
| int | CPGetFilePosition (CP_FILE_REF fileRef, unsigned long *filePosPtr) | 
| int | CPSetFilePosition (CP_FILE_REF fileRef, long filePos, int mode) | 
| int | CPAtEndOfFile (CP_FILE_REF fileRef) | 
| int | CPNumberOfBytesInFile (CP_FILE_REF fileRef, unsigned long *numBytesPtr) | 
| int CPAtEndOfFile | ( | CP_FILE_REF | fileRef | ) | 
Definition at line 339 of file CrossPlatformFileIO.cpp.
Referenced by CPReadFile(), and CPReadFile2().
| int CPCloseFile | ( | CP_FILE_REF | fileRef | ) | 
Definition at line 139 of file CrossPlatformFileIO.cpp.
References CP_FILE_CLOSE_ERROR.
Referenced by NumeRe::IgorBinaryWave::readFile().
| int CPCreateFile | ( | const char * | fullFilePath, | 
| int | overwrite, | ||
| long | macCreator, | ||
| long | macFileType | ||
| ) | 
Definition at line 41 of file CrossPlatformFileIO.cpp.
References CPDeleteFile().
| int CPDeleteFile | ( | const char * | fullFilePath | ) | 
Definition at line 85 of file CrossPlatformFileIO.cpp.
Referenced by CPCreateFile().
| int CPGetFilePosition | ( | CP_FILE_REF | fileRef, | 
| unsigned long * | filePosPtr | ||
| ) | 
Definition at line 281 of file CrossPlatformFileIO.cpp.
References CP_FILE_POS_ERROR.
Referenced by ReadWave().
| int CPNumberOfBytesInFile | ( | CP_FILE_REF | fileRef, | 
| unsigned long * | numBytesPtr | ||
| ) | 
Definition at line 357 of file CrossPlatformFileIO.cpp.
References CP_FILE_POS_ERROR.
| int CPOpenFile | ( | const char * | fullFilePath, | 
| int | readOrWrite, | ||
| CP_FILE_REF * | fileRefPtr | ||
| ) | 
Definition at line 120 of file CrossPlatformFileIO.cpp.
References CP_FILE_OPEN_ERROR.
Referenced by NumeRe::IgorBinaryWave::readFile().
| int CPReadFile | ( | CP_FILE_REF | fileRef, | 
| unsigned long | count, | ||
| void * | buffer, | ||
| unsigned long * | numBytesReadPtr | ||
| ) | 
Definition at line 170 of file CrossPlatformFileIO.cpp.
References CP_FILE_EOF_ERROR, CP_FILE_READ_ERROR, and CPAtEndOfFile().
Referenced by LoadNumericWaveData(), and ReadWave().
| int CPReadFile2 | ( | CP_FILE_REF | fileRef, | 
| unsigned long | count, | ||
| void * | buffer, | ||
| unsigned long * | numBytesReadPtr | ||
| ) | 
Definition at line 214 of file CrossPlatformFileIO.cpp.
References CP_FILE_EOF_ERROR, CP_FILE_READ_ERROR, and CPAtEndOfFile().
| int CPSetFilePosition | ( | CP_FILE_REF | fileRef, | 
| long | filePos, | ||
| int | mode | ||
| ) | 
Definition at line 307 of file CrossPlatformFileIO.cpp.
References CP_FILE_POS_ERROR.
Referenced by ReadWave().
| int CPWriteFile | ( | CP_FILE_REF | fileRef, | 
| unsigned long | count, | ||
| const void * | buffer, | ||
| unsigned long * | numBytesWrittenPtr | ||
| ) | 
Definition at line 252 of file CrossPlatformFileIO.cpp.
References CP_FILE_WRITE_ERROR.