#include <FILERepr.hpp>
Inheritance diagram for FILERepr:
Public Types | |
typedef FileReprBase::params_t | params_t |
enum | Mode { READ, WRITE } |
Public Member Functions | |
FILERepr (const params_t *par) throw (std::ios_base::failure) | |
~FILERepr () | |
void | rewind () |
void | flush () |
std::streamsize | readFromFile (char *buffer, std::streamsize buffer_size) |
void | writeToFile (const char *str, std::streamsize n) |
Protected Attributes | |
FILE * | file |
The file that contain the transactions. | |
char * | file_buffer |
the low-level buffer | |
std::streamsize | file_buffer_size |
the size of the lowest level buffer | |
Mode | mode |
operating mode |
This representation is very simple, readable and fast. Our experiments showed, however, that it is still a little bit slower than FDRepr (file descriptor based) representation.
Definition at line 19 of file FILERepr.hpp.
|
Definition at line 22 of file FILERepr.hpp. |
|
Definition at line 20 of file FileReprBase.hpp. |
|
Definition at line 24 of file FILERepr.hpp. References file, FileReprBase::file_buffer, and FileReprBase::READ. |
|
Definition at line 52 of file FILERepr.hpp. References file. |
|
Reimplemented from FileReprBase. Definition at line 61 of file FILERepr.hpp. References file. |
|
Reimplemented from FileReprBase. Definition at line 66 of file FILERepr.hpp. References file. |
|
Reimplemented from FileReprBase. Definition at line 57 of file FILERepr.hpp. References file. |
|
Reimplemented from FileReprBase. Definition at line 71 of file FILERepr.hpp. References file. |
|
The file that contain the transactions.
Definition at line 77 of file FILERepr.hpp. Referenced by FILERepr(), flush(), readFromFile(), rewind(), writeToFile(), and ~FILERepr(). |
|
the low-level buffer
Definition at line 89 of file FileReprBase.hpp. Referenced by FDRepr::FDRepr(), FILERepr(), FileReprBase::FileReprBase(), FDRepr::flush(), StreamRepr::StreamRepr(), FDRepr::writeToFile(), and FileReprBase::~FileReprBase(). |
|
the size of the lowest level buffer
Definition at line 91 of file FileReprBase.hpp. Referenced by FDRepr::FDRepr(), and FDRepr::flush(). |
|
operating mode
Definition at line 93 of file FileReprBase.hpp. Referenced by SimpleOutputTester::doTest(), FileReprBase::FileReprBase(), and FDRepr::~FDRepr(). |