powerd++
0.4.4
|
Implement seek support for file types. More...
#include <io.hpp>
Public Member Functions | |
FileT & | seek (long int const offset, int const origin) |
Seek file position. More... | |
FileT & | rewind () |
Reset file position to the beginning of the file. More... | |
long int | tell () |
Retrieve the current file position. More... | |
Public Member Functions inherited from sys::io::file_feature< FileT, Tail ... > | |
operator bool () const | |
Cast to boolean. More... | |
bool | eof () const |
Return whether the file instance is in EOF state. More... | |
bool | error () const |
Return whether the file instance is in an error state. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from sys::io::file_feature< FileT, Tail ... > | |
operator FileT & () | |
Implicit cast up to inheriting file access type. | |
file_feature (FILE *const handle) | |
Construct from a FILE object pointer. More... | |
Protected Attributes inherited from sys::io::file_feature< FileT, Tail ... > | |
FILE * | handle |
A pointer to the underlying FILE object. | |
Implement seek support for file types.
FileT | The file access type inheriting the feature |
Tail | The remaining features |
|
inline |
Reset file position to the beginning of the file.
|
inline |
Seek file position.
offset | The origin relative file position for binary files or an absolute position returned by tell() for text files |
origin | One of SEEK_SET, SEEK_CUR, SEEK_END |
|
inline |
Retrieve the current file position.