#include <FDRepr.hpp>
Inheritance diagram for FDRepr:
Public Types | |
typedef FileReprBase::params_t | params_t |
enum | Mode { READ, WRITE } |
Public Member Functions | |
FDRepr (const params_t *par) throw (std::ios_base::failure) | |
~FDRepr () | |
void | rewind () |
void | flush () |
std::streamsize | readFromFile (char *buffer, std::streamsize buffer_size) |
void | writeToFile (const char *buf, std::streamsize len) |
Protected Attributes | |
int | fdout |
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 | |
Private Attributes | |
char * | bufend |
iostream buffer | |
char * | buffree |
This is the fastest but also the most complicated file representaion.
Definition at line 24 of file FDRepr.hpp.
|
Definition at line 27 of file FDRepr.hpp. |
|
Definition at line 20 of file FileReprBase.hpp. |
|
Definition at line 29 of file FDRepr.hpp. References bufend, buffree, fdout, FileReprBase::file_buffer, FileReprBase::file_buffer_size, and FileReprBase::WRITE. |
|
Definition at line 54 of file FDRepr.hpp. References fdout, flush(), FileReprBase::mode, and FileReprBase::WRITE. |
|
Reimplemented from FileReprBase. Definition at line 64 of file FDRepr.hpp. References bufend, buffree, fdout, FileReprBase::file_buffer, and FileReprBase::file_buffer_size. Referenced by ~FDRepr(). |
|
Reimplemented from FileReprBase. Definition at line 79 of file FDRepr.hpp. References fdout. |
|
Reimplemented from FileReprBase. Definition at line 60 of file FDRepr.hpp. References fdout. |
|
Reimplemented from FileReprBase. Definition at line 90 of file FDRepr.hpp. References bufend, buffree, fdout, and FileReprBase::file_buffer. |
|
iostream buffer
Definition at line 113 of file FDRepr.hpp. Referenced by FDRepr(), flush(), and writeToFile(). |
|
Definition at line 113 of file FDRepr.hpp. Referenced by FDRepr(), flush(), and writeToFile(). |
|
The file that contain the transactions.
Definition at line 110 of file FDRepr.hpp. Referenced by FDRepr(), flush(), readFromFile(), rewind(), writeToFile(), and ~FDRepr(). |
|
the low-level buffer
Definition at line 89 of file FileReprBase.hpp. Referenced by FDRepr(), FILERepr::FILERepr(), FileReprBase::FileReprBase(), flush(), StreamRepr::StreamRepr(), writeToFile(), and FileReprBase::~FileReprBase(). |
|
the size of the lowest level buffer
Definition at line 91 of file FileReprBase.hpp. |
|
operating mode
Definition at line 93 of file FileReprBase.hpp. Referenced by SimpleOutputTester::doTest(), FileReprBase::FileReprBase(), and ~FDRepr(). |