Ptex
|
#include <PtexReader.h>
Public Member Functions | |
virtual Handle | open (const char *path) |
Open a file in read mode. More... | |
virtual void | seek (Handle handle, int64_t pos) |
Seek to an absolute byte position in the input stream. More... | |
virtual size_t | read (void *buffer, size_t size, Handle handle) |
Read a number of bytes from the file. More... | |
virtual bool | close (Handle handle) |
Close a file. More... | |
virtual const char * | lastError () |
Return the last error message encountered. More... | |
Private Attributes | |
char * | buffer |
Additional Inherited Members | |
![]() | |
typedef void * | Handle |
![]() | |
virtual | ~PtexInputHandler () |
Definition at line 545 of file PtexReader.h.
|
inlinevirtual |
Close a file.
Returns false if an error occurs, and the error string is available via lastError().
Implements PtexInputHandler.
Definition at line 562 of file PtexReader.h.
|
inlinevirtual |
Return the last error message encountered.
Implements PtexInputHandler.
Definition at line 568 of file PtexReader.h.
|
inlinevirtual |
Open a file in read mode.
Returns null if there was an error. If an error occurs, the error string is available via lastError().
Implements PtexInputHandler.
Definition at line 549 of file PtexReader.h.
|
inlinevirtual |
Read a number of bytes from the file.
Returns the number of bytes successfully read. If less than the requested number of bytes is read, the error string is available via lastError().
Implements PtexInputHandler.
Definition at line 559 of file PtexReader.h.
|
inlinevirtual |
Seek to an absolute byte position in the input stream.
Implements PtexInputHandler.
Definition at line 558 of file PtexReader.h.
|
private |
Definition at line 547 of file PtexReader.h.