Assimp  v3.1.1 (June 2014)
Assimp::Q3BSP::ZipFile Class Reference

Inherits Assimp::IOStream.

Public Member Functions

size_t FileSize () const
 Returns filesize Returns the filesize. More...
 
void Flush ()
 Flush the contents of the file buffer (for writers) See fflush() for more details. More...
 
size_t Read (void *pvBuffer, size_t pSize, size_t pCount)
 Read from the file. More...
 
aiReturn Seek (size_t, aiOrigin)
 Set the read/write cursor of the file. More...
 
size_t Tell () const
 Get the current position of the read/write cursor. More...
 
size_t Write (const void *, size_t, size_t)
 Write to the file. More...
 
 ZipFile (size_t size)
 
 ~ZipFile ()
 
- Public Member Functions inherited from Assimp::IOStream
virtual ~IOStream ()
 Destructor. More...
 

Friends

class Q3BSPZipArchive
 

Additional Inherited Members

- Protected Member Functions inherited from Assimp::IOStream
 IOStream (void)
 Constructor protected, use IOSystem::Open() to create an instance. More...
 

Detailed Description

::

Constructor & Destructor Documentation

◆ ZipFile()

Assimp::Q3BSP::ZipFile::ZipFile ( size_t  size)
explicit

◆ ~ZipFile()

Assimp::Q3BSP::ZipFile::~ZipFile ( )

Member Function Documentation

◆ FileSize()

size_t Assimp::Q3BSP::ZipFile::FileSize ( ) const
virtual

Returns filesize Returns the filesize.

Implements Assimp::IOStream.

◆ Flush()

void Assimp::Q3BSP::ZipFile::Flush ( )
virtual

Flush the contents of the file buffer (for writers) See fflush() for more details.

Implements Assimp::IOStream.

◆ Read()

size_t Assimp::Q3BSP::ZipFile::Read ( void *  pvBuffer,
size_t  pSize,
size_t  pCount 
)
virtual

Read from the file.

See fread() for more details This fails for write-only files

Implements Assimp::IOStream.

◆ Seek()

aiReturn Assimp::Q3BSP::ZipFile::Seek ( size_t  pOffset,
aiOrigin  pOrigin 
)
virtual

Set the read/write cursor of the file.

Note that the offset is negative for aiOrigin_END. See fseek() for more details

Implements Assimp::IOStream.

◆ Tell()

size_t Assimp::Q3BSP::ZipFile::Tell ( ) const
virtual

Get the current position of the read/write cursor.

See ftell() for more details

Implements Assimp::IOStream.

◆ Write()

size_t Assimp::Q3BSP::ZipFile::Write ( const void *  pvBuffer,
size_t  pSize,
size_t  pCount 
)
virtual

Write to the file.

See fwrite() for more details This fails for read-only files

Implements Assimp::IOStream.

Friends And Related Function Documentation

◆ Q3BSPZipArchive

friend class Q3BSPZipArchive
friend

The documentation for this class was generated from the following files: