Provides an interface to read/write data from files as input/output streams.
More...
#include <btkBinaryFileStream_mmfstream.h>
|
typedef std::ios_base::failure | failure |
|
Provides an interface to read/write data from files as input/output streams.
This class is a low level class used by the class BinaryFileStream when possible (if the OS supports it). It is not advised to use this class directly even if the direct access to the buffer can speed the reading of a file (compared to the use of the class BinaryFileStream).
btk::mmfstream::mmfstream |
( |
| ) |
|
|
inline |
Simple constructor which must use the method open() after.
btk::mmfstream::mmfstream |
( |
const char * |
s, |
|
|
std::ios_base::openmode |
mode |
|
) |
| |
|
inline |
Constructor which opens the given filename s and options mode.
bool btk::mmfstream::bad |
( |
| ) |
const |
|
inline |
void btk::mmfstream::clear |
( |
std::ios_base::iostate |
state = std::ios_base::goodbit | ) |
|
|
inline |
Sets a new value for the error control state.
void btk::mmfstream::close |
( |
| ) |
|
|
inline |
bool btk::mmfstream::eof |
( |
| ) |
const |
|
inline |
std::ios_base::iostate btk::mmfstream::exceptions |
( |
| ) |
const |
|
inline |
Returns the exception mask
void btk::mmfstream::exceptions |
( |
std::ios_base::iostate |
except | ) |
|
|
inline |
bool btk::mmfstream::fail |
( |
| ) |
const |
|
inline |
Checks if either failbit or badbit is set
bool btk::mmfstream::good |
( |
| ) |
const |
|
inline |
Checks if the state of the stream is good for i/o operations
bool btk::mmfstream::is_open |
( |
| ) |
const |
|
inline |
void btk::mmfstream::open |
( |
const char * |
s, |
|
|
std::ios_base::openmode |
mode |
|
) |
| |
|
inline |
const mmfilebuf * btk::mmfstream::rdbuf |
( |
| ) |
const |
|
inline |
Gets the associated file buffer object.
std::ios_base::iostate btk::mmfstream::rdstate |
( |
| ) |
const |
|
inline |
Returns the current internal error state flags of the stream.
mmfstream & btk::mmfstream::read |
( |
char * |
s, |
|
|
std::streamsize |
n |
|
) |
| |
mmfstream & btk::mmfstream::seekg |
( |
std::streampos |
pos | ) |
|
|
inline |
Sets position of the get pointer
mmfstream & btk::mmfstream::seekg |
( |
std::streamoff |
off, |
|
|
std::ios_base::seekdir |
dir |
|
) |
| |
|
inline |
Sets position of the get pointer
mmfstream & btk::mmfstream::seekp |
( |
std::streampos |
pos | ) |
|
|
inline |
Sets position of put pointer
mmfstream & btk::mmfstream::seekp |
( |
std::streamoff |
off, |
|
|
std::ios_base::seekdir |
dir |
|
) |
| |
|
inline |
Sets position of put pointer
void btk::mmfstream::setstate |
( |
std::ios_base::iostate |
state | ) |
|
|
inline |
std::streampos btk::mmfstream::tellg |
( |
| ) |
|
|
inline |
Gets position of the get pointer.
mmfstream & btk::mmfstream::write |
( |
const char * |
s, |
|
|
std::streamsize |
n |
|
) |
| |