#include <fileclasses.h>
Inheritance diagram for salt::RFile:
Public Member Functions | |
virtual | ~RFile () |
virtual bool | Open (const char *fn=NULL, char *mode="rb")=0 |
opens the file fn in the specified mode. | |
virtual void | Close ()=0 |
closes a previously opened file | |
virtual void | Destroy ()=0 |
releases any occupied ressources used by the file. | |
virtual int | Eof ()=0 |
returns a non zero value if the file pointer is at the end of the file | |
virtual long | Tell ()=0 |
returns the current file pointer position | |
virtual int | GetPos (long *pos)=0 |
copies the current file pointer position to pos and returns true on success | |
virtual int | Seek (long offset, int origin)=0 |
sets the file pointer for the file. | |
virtual void | Rewind ()=0 |
sets the file pointer to the beginning of the file | |
virtual long | Size ()=0 |
return the size of the file | |
virtual char * | Gets (char *buffer, int n)=0 |
reads in at most one less than n characters from the file and stores them into buffer. | |
virtual int | Getc ()=0 |
reads the next character from the file returns it as an int r EOF on end of file or error. | |
virtual void * | GetHandle ()=0 |
returns a handle identifying the file. | |
virtual size_t | Read (void *buffer, size_t size, size_t count)=0 |
reads reads count elements of data, each size bytes long, storing them in the specified buffer | |
virtual size_t | Read (void *buffer, size_t bytes)=0 |
reads count bytes of data, storing them in the specified buffer | |
int | Igetw () |
reads a 2 byte int from the file in Intel ordering | |
long | Igetl () |
reads a 4 byte int from the file in Intel ordering | |
int | Mgetw () |
reads a 2 byte int from the file in Motorola ordering | |
long | Mgetl () |
reads a 4 byte int from the file in Motorola ordering |
Definition at line 47 of file fileclasses.h.
|
Definition at line 50 of file fileclasses.h. |
|
closes a previously opened file
Implemented in salt::MemFile, and salt::StdFile. |
|
releases any occupied ressources used by the file. The semantic is up to the derived classes Implemented in salt::MemFile, and salt::StdFile. |
|
returns a non zero value if the file pointer is at the end of the file
Implemented in salt::MemFile, and salt::StdFile. |
|
reads the next character from the file returns it as an int r EOF on end of file or error.
Implemented in salt::MemFile, and salt::StdFile. |
|
returns a handle identifying the file. The semantics of this handle depends on the subclass, implementing this method Implemented in salt::MemFile, and salt::StdFile. |
|
copies the current file pointer position to pos and returns true on success
Implemented in salt::MemFile, and salt::StdFile. |
|
reads in at most one less than n characters from the file and stores them into buffer. A '' is stored after the last character in the buffer. Implemented in salt::MemFile, and salt::StdFile. |
|
reads a 4 byte int from the file in Intel ordering
Definition at line 130 of file fileclasses.h. References Getc(). Here is the call graph for this function: ![]() |
|
reads a 2 byte int from the file in Intel ordering
Definition at line 119 of file fileclasses.h. References Getc(). Here is the call graph for this function: ![]() |
|
reads a 4 byte int from the file in Motorola ordering
Definition at line 154 of file fileclasses.h. References Getc(). Here is the call graph for this function: ![]() |
|
reads a 2 byte int from the file in Motorola ordering
Definition at line 143 of file fileclasses.h. References Getc(). Here is the call graph for this function: ![]() |
|
opens the file fn in the specified mode. The implementation of the namespace and mode semantics ist up to derived classes Implemented in salt::MemFile, and salt::StdFile. |
|
reads count bytes of data, storing them in the specified buffer
Implemented in salt::MemFile, and salt::StdFile. |
|
reads reads count elements of data, each size bytes long, storing them in the specified buffer
Implemented in salt::MemFile, and salt::StdFile. Referenced by kerosin::OpenGLServer::LoadARBProgram(), and salt::MemFile::MemFile(). |
|
sets the file pointer to the beginning of the file
Implemented in salt::MemFile, and salt::StdFile. |
|
sets the file pointer for the file. The new position, measured in bytes, is obtained by adding offset bytes to the position specified by origin. If origin is set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the start of the file, the current position indicator, or end-of-file, respectively. Implemented in salt::MemFile, and salt::StdFile. |
|
return the size of the file
Implemented in salt::MemFile, and salt::StdFile. Referenced by kerosin::OpenGLServer::LoadARBProgram(), and salt::MemFile::MemFile(). |
|
returns the current file pointer position
Implemented in salt::MemFile, and salt::StdFile. |