Default IO implementation, use standard IO operations.
More...
#include <DefaultIOStream.h>
Inherits Assimp::IOStream.
|
| size_t | FileSize () const override |
| | Get size of file. More...
|
| |
| void | Flush () override |
| | Flush file contents. More...
|
| |
| size_t | Read (void *pvBuffer, size_t pSize, size_t pCount) override |
| | Read from stream. More...
|
| |
| aiReturn | Seek (size_t pOffset, aiOrigin pOrigin) override |
| | Seek specific position. More...
|
| |
| size_t | Tell () const override |
| | Get current seek position. More...
|
| |
| size_t | Write (const void *pvBuffer, size_t pSize, size_t pCount) override |
| | Write to stream. More...
|
| |
| | ~DefaultIOStream () |
| | Destructor public to allow simple deletion to close the file. More...
|
| |
| virtual size_t | FileSize () const =0 |
| | Returns filesize Returns the filesize. More...
|
| |
| virtual void | Flush ()=0 |
| | Flush the contents of the file buffer (for writers) See fflush() for more details. More...
|
| |
| virtual size_t | Read (void *pvBuffer, size_t pSize, size_t pCount)=0 |
| | Read from the file. More...
|
| |
| virtual aiReturn | Seek (size_t pOffset, aiOrigin pOrigin)=0 |
| | Set the read/write cursor of the file. More...
|
| |
| virtual size_t | Tell () const =0 |
| | Get the current position of the read/write cursor. More...
|
| |
| virtual size_t | Write (const void *pvBuffer, size_t pSize, size_t pCount)=0 |
| | Write to the file. More...
|
| |
| virtual | ~IOStream () |
| | Destructor. More...
|
| |
Default IO implementation, use standard IO operations.
- Note
- An instance of this class can exist without a valid file handle attached to it. All calls fail, but the instance can nevertheless be used with no restrictions.
◆ DefaultIOStream() [1/2]
◆ DefaultIOStream() [2/2]
| AI_FORCE_INLINE Assimp::DefaultIOStream::DefaultIOStream |
( |
FILE * |
pFile, |
|
|
const std::string & |
strFilename |
|
) |
| |
|
protected |
The class constructor with the file name and the stream.
- Parameters
-
| pFile | The file-streaam |
| strFilename | The file name |
◆ ~DefaultIOStream()
| Assimp::DefaultIOStream::~DefaultIOStream |
( |
| ) |
|
Destructor public to allow simple deletion to close the file.
◆ FileSize()
| size_t Assimp::DefaultIOStream::FileSize |
( |
| ) |
const |
|
overridevirtual |
◆ Flush()
| void Assimp::DefaultIOStream::Flush |
( |
| ) |
|
|
overridevirtual |
◆ Read()
| size_t Assimp::DefaultIOStream::Read |
( |
void * |
pvBuffer, |
|
|
size_t |
pSize, |
|
|
size_t |
pCount |
|
) |
| |
|
overridevirtual |
◆ Seek()
◆ Tell()
| size_t Assimp::DefaultIOStream::Tell |
( |
| ) |
const |
|
overridevirtual |
◆ Write()
| size_t Assimp::DefaultIOStream::Write |
( |
const void * |
pvBuffer, |
|
|
size_t |
pSize, |
|
|
size_t |
pCount |
|
) |
| |
|
overridevirtual |
◆ DefaultIOSystem
The documentation for this class was generated from the following file: