Ptex
|
#include <PtexReader.h>
Public Member Functions | |
DefaultInputHandler () | |
virtual Handle | open (const char *path) |
Open a file in read mode. | |
virtual void | seek (Handle handle, int64_t pos) |
Seek to an absolute byte position in the input stream. | |
virtual size_t | read (void *bufferArg, size_t size, Handle handle) |
Read a number of bytes from the file. | |
virtual bool | close (Handle handle) |
Close a file. | |
virtual const char * | lastError () |
Return the last error message encountered. | |
virtual Handle | open (const char *path)=0 |
Open a file in read mode. | |
virtual void | seek (Handle handle, int64_t pos)=0 |
Seek to an absolute byte position in the input stream. | |
virtual size_t | read (void *buffer, size_t size, Handle handle)=0 |
Read a number of bytes from the file. | |
virtual bool | close (Handle handle)=0 |
Close a file. | |
virtual const char * | lastError ()=0 |
Return the last error message encountered. | |
Private Attributes | |
char * | buffer |
Additional Inherited Members | |
Public Types inherited from PtexInputHandler | |
typedef void * | Handle |
Protected Member Functions inherited from PtexInputHandler | |
virtual | ~PtexInputHandler () |
Definition at line 611 of file PtexReader.h.
|
inline |
Definition at line 615 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 629 of file PtexReader.h.
References buffer, and PtexReader::ok().
|
inlinevirtual |
Return the last error message encountered.
Implements PtexInputHandler.
Definition at line 634 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 616 of file PtexReader.h.
References buffer, IBuffSize, and PtexReader::path().
|
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 626 of file PtexReader.h.
|
inlinevirtual |
Seek to an absolute byte position in the input stream.
Implements PtexInputHandler.
Definition at line 625 of file PtexReader.h.
|
private |
Definition at line 613 of file PtexReader.h.