Implements the base functionality of all file access types.
More...
#include <io.hpp>
|
FILE * | handle |
| A pointer to the underlying FILE object.
|
|
template<class FileT, feature ...>
class sys::io::file_feature< FileT,... >
Implements the base functionality of all file access types.
- Template Parameters
-
FileT | The file access type inheriting the feature |
- See also
- file_feature<FileT, read, Tail ...>
-
file_feature<FileT, write, Tail ...>
-
file_feature<FileT, seek, Tail ...>
◆ file_feature()
template<class FileT , feature ... >
Construct from a FILE object pointer.
- Parameters
-
handle | A pointer to the object keeping file descriptor state |
◆ eof()
template<class FileT , feature ... >
Return whether the file instance is in EOF state.
- See also
- feof()
- Returns
- Whether the file instance points to a FILE object and is in EOF state
◆ error()
template<class FileT , feature ... >
Return whether the file instance is in an error state.
- See also
- ferror()
- Returns
- Whether the file instance points to a FILE object and is in an error state
◆ operator bool()
template<class FileT , feature ... >
Cast to boolean.
- See also
- feof()
-
ferror()
- Return values
-
true | The file instance point to a FILE object, which is not in EOF or error state |
false | The file instance does not point to a FILE object, or the FILE object is in EOF or error state |
The documentation for this class was generated from the following file: