NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
CrossPlatformFileIO.h
Go to the documentation of this file.
1#ifndef CROSSPLATFORMIO_H
2#define CROSSPLATFORMIO_H
3
4#define CP_FILE_OPEN_ERROR 10000
5#define CP_FILE_CLOSE_ERROR 10001
6#define CP_FILE_EOF_ERROR 10002
7#define CP_FILE_READ_ERROR 10003
8#define CP_FILE_WRITE_ERROR 10004
9#define CP_FILE_POS_ERROR 10005
10
11#define CP_FILE_REF FILE*
12
13int CPCreateFile(const char* fullFilePath, int overwrite, long macCreator, long macFileType);
14int CPDeleteFile(const char* fullFilePath);
15int CPOpenFile(const char* fullFilePath, int readOrWrite, CP_FILE_REF* fileRefPtr);
16int CPCloseFile(CP_FILE_REF fileRef);
17int CPReadFile(CP_FILE_REF fileRef, unsigned long count, void* buffer, unsigned long* numBytesReadPtr);
18int CPReadFile2(CP_FILE_REF fileRef, unsigned long count, void* buffer, unsigned long* numBytesReadPtr);
19int CPWriteFile(CP_FILE_REF fileRef, unsigned long count, const void* buffer, unsigned long* numBytesWrittenPtr);
20int CPGetFilePosition(CP_FILE_REF fileRef, unsigned long* filePosPtr);
21int CPSetFilePosition(CP_FILE_REF fileRef, long filePos, int mode);
22int CPAtEndOfFile(CP_FILE_REF fileRef);
23int CPNumberOfBytesInFile(CP_FILE_REF fileRef, unsigned long* numBytesPtr);
24#endif
25
int CPCloseFile(CP_FILE_REF fileRef)
int CPDeleteFile(const char *fullFilePath)
int CPWriteFile(CP_FILE_REF fileRef, unsigned long count, const void *buffer, unsigned long *numBytesWrittenPtr)
int CPSetFilePosition(CP_FILE_REF fileRef, long filePos, int mode)
int CPGetFilePosition(CP_FILE_REF fileRef, unsigned long *filePosPtr)
int CPNumberOfBytesInFile(CP_FILE_REF fileRef, unsigned long *numBytesPtr)
int CPReadFile2(CP_FILE_REF fileRef, unsigned long count, void *buffer, unsigned long *numBytesReadPtr)
int CPOpenFile(const char *fullFilePath, int readOrWrite, CP_FILE_REF *fileRefPtr)
int CPReadFile(CP_FILE_REF fileRef, unsigned long count, void *buffer, unsigned long *numBytesReadPtr)
int CPCreateFile(const char *fullFilePath, int overwrite, long macCreator, long macFileType)
#define CP_FILE_REF
int CPAtEndOfFile(CP_FILE_REF fileRef)