00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TEKFILEASCII_H
00021 #define TEKFILEASCII_H
00022
00023 #ifndef TEKLTI_H_C35A2A4C_D475_11D9_90BC_000BDBC434D9
00024 #error This file must be included from <teklti.h>
00025 #endif
00026
00027
00028 TEKUUIDIMPORT(UTekFileASCII);
00029
00030
00038 class TekFileASCII : public TekFile
00039 {
00040 public:
00041
00045 TekFileASCII();
00046
00047
00051 ~TekFileASCII();
00052
00053
00054 #ifndef TEKFILE_INTERNAL
00055 #ifndef TEKFILEASCII_INTERNAL
00056 virtual TEKERR ReadLine(uchar_t** Buffer, unsigned long ReadMax) = 0;
00057 virtual TEKERR WriteLine(const uchar_t* Buffer) = 0;
00058
00059 virtual TEKERR Close() = 0;
00060 virtual TEKERR Flush() = 0;
00061 virtual TEKERR get_FILE(FILE** FileDescriptor) = 0;
00062 virtual TEKERR get_Filename(uchar_t** Name) = 0;
00063 virtual TEKERR get_Mode(TekFileMode* ModeID) = 0;
00064 virtual TEKERR get_Type(TekFileType* FileTypePointer) = 0;
00065 virtual TEKERR Open() = 0;
00066 virtual TEKERR Open64() = 0;
00067 virtual TEKERR put_FILE(FILE* FileDescriptor) = 0;
00068 virtual TEKERR put_Filename(uchar_t* Name) = 0;
00069 virtual TEKERR put_Mode(TekFileMode ModeID) = 0;
00070 virtual TEKERR Read64(void* Buffer, uint64_t BytesToRead, uint64_t* BytesRead) = 0;
00071 virtual TEKERR Read(void* Buffer, unsigned long BytesToRead, unsigned long* BytesRead) = 0;
00072 virtual TEKERR Seek64(TekFileSeek SeekWhere, int64_t NewLocation) = 0;
00073 virtual TEKERR Seek(TekFileSeek SeekWhere, signed long NewLocation) = 0;
00074 virtual TEKERR Write64(void* Buffer, uint64_t BytesToWrite, uint64_t* BytesWrote) = 0;
00075 virtual TEKERR Write(void* Buffer, unsigned long BytesToWrite, unsigned long* BytesWrote) = 0;
00076 virtual TEKERR get_Location(unsigned long * Location) = 0;
00077 virtual TEKERR get_Location64(uint64_t * Location) = 0;
00078 #endif
00079 #endif
00080
00081 public:
00082
00083 TEKSTD_HEADER_VARS;
00084 };
00085
00086 #endif