Go to the documentation of this file.
48 #ifndef AI_IOSTREAM_H_INC
49 #define AI_IOSTREAM_H_INC
52 # pragma GCC system_header
58 # error This header requires C++ to be used. aiFileIO.h is the \
59 corresponding C interface.
73 :
public Intern::AllocateFromAssimpHeap
92 virtual size_t Read(
void* pvBuffer,
101 virtual size_t Write(
const void* pvBuffer,
117 virtual size_t Tell()
const = 0;
virtual aiReturn Seek(size_t pOffset, aiOrigin pOrigin)=0
Set the read/write cursor of the file.
IOStream() AI_NO_EXCEPT
class IOStream
Definition: IOStream.hpp:133
aiOrigin
Definition: types.h:426
virtual size_t Write(const void *pvBuffer, size_t pSize, size_t pCount)=0
Write to the file.
aiReturn
Definition: types.h:397
virtual size_t FileSize() const =0
Returns filesize Returns the filesize.
virtual size_t Read(void *pvBuffer, size_t pSize, size_t pCount)=0
Read from the file.
virtual void Flush()=0
Flush the contents of the file buffer (for writers) See fflush() for more details.
virtual ~IOStream()
Destructor. Deleting the object closes the underlying file, alternatively you may use IOSystem::Close...
Definition: IOStream.hpp:139
Definition: ai_assert.h:50
virtual size_t Tell() const =0
Get the current position of the read/write cursor.
CPP-API: Class to handle file I/O for C++.
Definition: IOStream.hpp:75