Base file interface.
Public Member Functions | |
| virtual tFileFlags | GetFileFlags () const =0 |
| Get the file flags. {Property}. More... | |
| virtual const achar * | GetSourcePath () const =0 |
| Get the path from where this file has been opened. More... | |
| virtual tBool | Seek (tI64 offset)=0 |
| Moves the file pointer from the current position. More... | |
| virtual tBool | SeekSet (tI64 offset)=0 |
| Set the file pointer position from the begining of the file. More... | |
| virtual tSize | ReadRaw (void *apOut, tSize anSize)=0 |
| Read data from the file. More... | |
| virtual tSize | WriteRaw (const void *apIn, tSize anSize)=0 |
| Write data in the file. More... | |
| virtual tI64 | Tell ()=0 |
| Tell the current cursor position in the file in bytes. More... | |
| virtual tI64 | GetSize () const =0 |
| Get the size of the file. More... | |
| virtual tBool | SeekEnd (tI64 offset)=0 |
| Moves the file pointer from the end of the file. More... | |
| virtual tBool | Flush ()=0 |
| Flush the file content. More... | |
| virtual tBool | GetTime (eFileTime aFileTime, iTime *apTime) const =0 |
| Get the file time. More... | |
| virtual tBool | SetTime (eFileTime aFileTime, const iTime *apTime)=0 |
| Set the file time. More... | |
| virtual tBool | Resize (tI64 newSize)=0 |
| Resize the file. More... | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Get the file flags. {Property}.
|
pure virtual |
Get the path from where this file has been opened.
Moves the file pointer from the current position.
| offset | is the number of bytes to add to the current position. |
Set the file pointer position from the begining of the file.
| offset | is the position, in bytes, from the begining of the file. |
Read data from the file.
| apOut | is the buffer where the data will be copied. |
| anSize | is the number of bytes to read from the file. |
Write data in the file.
| apIn | is the source buffer which contain the data to write. |
| anSize | is the number of bytes to write in the file. Usually the size of the pIn buffer. |
|
pure virtual |
Tell the current cursor position in the file in bytes.
|
pure virtual |
Get the size of the file.
Moves the file pointer from the end of the file.
| offset | is the number of bytes to move from the end of the file. By example if you pass 4, the cursor will be passed four bytes before the end of the file. |
|
pure virtual |
Flush the file content.
1.8.7