#include <PlainFile.h>
Inheritance diagram for PlainFileReader:
Public Member Functions | |
PlainFileReader (int fd, size_t bufmax=4096) | |
virtual | ~PlainFileReader () |
int | getByte () |
virtual bool | eof () const |
int | fd () const |
|
The PlainFile does not make an assumption whether the file descriptor is blocking or non-blocking. If it is non-blocking without any data to read, it will return an error. The file descriptor is not considered owned by the PlainFile object, ie. it will not be discarded on deletion of the object. However, no implications about the number of read or unread bytes must be made by the calling application.
|
|
Destructor. |
|
If the file descriptor refers to a blocking file, this function can be used by the application to determine whether the end of file has been reached. In case of non-blocking operation, the function is meaningless.
|
|
Retrieves the current file descriptor.
|
|
Gets a byte from the given file.
Implements PlainReader.
|