#include <StreamRepr.hpp>
Inheritance diagram for StreamRepr:
Public Types | |
typedef FileReprBase::params_t | params_t |
enum | Mode { READ, WRITE } |
Public Member Functions | |
StreamRepr (const params_t *par) throw (std::ios_base::failure) | |
~StreamRepr () | |
void | rewind () |
void | flush () |
std::streamsize | readFromFile (char *buffer, std::streamsize buffer_size) |
void | writeToFile (const char *str, std::streamsize n) |
Protected Attributes | |
std::ifstream | input_stream |
stream to read | |
std::ofstream | output_stream |
steam to write | |
char * | file_buffer |
the low-level buffer | |
std::streamsize | file_buffer_size |
the size of the lowest level buffer | |
Mode | mode |
operating mode |
This is the simplest, but also the slowest file representation.
Definition at line 18 of file StreamRepr.hpp.
|
Reimplemented in SimpleAssocRuleWriter, SimpleOutput, DecoderBase< BufferedNormalOutput< StreamRepr > >, SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >, BufferedNormalOutput< StreamRepr >, and OutputBase< StreamRepr >. Definition at line 21 of file StreamRepr.hpp. |
|
Definition at line 20 of file FileReprBase.hpp. |
|
Definition at line 23 of file StreamRepr.hpp. References FileReprBase::file_buffer, input_stream, output_stream, and FileReprBase::READ. |
|
Definition at line 50 of file StreamRepr.hpp. References input_stream, and output_stream. |
|
Reimplemented from FileReprBase. Definition at line 63 of file StreamRepr.hpp. References output_stream. |
|
Reimplemented from FileReprBase. Definition at line 68 of file StreamRepr.hpp. References input_stream. |
|
Reimplemented from FileReprBase. Definition at line 58 of file StreamRepr.hpp. References input_stream. |
|
Reimplemented from FileReprBase. Definition at line 72 of file StreamRepr.hpp. References output_stream. |
|
the low-level buffer
Definition at line 89 of file FileReprBase.hpp. Referenced by FDRepr::FDRepr(), FILERepr::FILERepr(), FileReprBase::FileReprBase(), FDRepr::flush(), 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(). |
|
stream to read
Definition at line 78 of file StreamRepr.hpp. Referenced by SimpleTransactionReader::getNextItem(), SimpleTransactionReader::nextTransactionBIS(), SimpleTransactionReader::nextTransactionUAC(), readFromFile(), rewind(), StreamRepr(), and ~StreamRepr(). |
|
operating mode
Definition at line 93 of file FileReprBase.hpp. Referenced by SimpleOutputTester::doTest(), FileReprBase::FileReprBase(), and FDRepr::~FDRepr(). |
|
steam to write
Definition at line 80 of file StreamRepr.hpp. Referenced by flush(), StreamRepr(), SimpleAssocRuleWriter::writeAssocRule(), SimpleOutput::writeItemsetAndCounter(), writeToFile(), and ~StreamRepr(). |