Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

FDRepr Class Reference

The file descriptor based file representation. More...

#include <FDRepr.hpp>

Inheritance diagram for FDRepr:

Inheritance graph
[legend]
Collaboration diagram for FDRepr:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

The file descriptor based file representation.

This is the fastest but also the most complicated file representaion.

Definition at line 24 of file FDRepr.hpp.


Member Typedef Documentation

typedef FileReprBase::params_t FDRepr::params_t
 

Definition at line 27 of file FDRepr.hpp.


Member Enumeration Documentation

enum FileReprBase::Mode [inherited]
 

Enumerator:
READ 
WRITE 

Definition at line 20 of file FileReprBase.hpp.


Constructor & Destructor Documentation

FDRepr::FDRepr const params_t par  )  throw (std::ios_base::failure) [inline]
 

Definition at line 29 of file FDRepr.hpp.

References bufend, buffree, fdout, FileReprBase::file_buffer, FileReprBase::file_buffer_size, and FileReprBase::WRITE.

FDRepr::~FDRepr  )  [inline]
 

Definition at line 54 of file FDRepr.hpp.

References fdout, flush(), FileReprBase::mode, and FileReprBase::WRITE.


Member Function Documentation

void FDRepr::flush  )  [inline]
 

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().

std::streamsize FDRepr::readFromFile char *  buffer,
std::streamsize  buffer_size
[inline]
 

Reimplemented from FileReprBase.

Definition at line 79 of file FDRepr.hpp.

References fdout.

void FDRepr::rewind  )  [inline]
 

Reimplemented from FileReprBase.

Definition at line 60 of file FDRepr.hpp.

References fdout.

void FDRepr::writeToFile const char *  buf,
std::streamsize  len
[inline]
 

Reimplemented from FileReprBase.

Definition at line 90 of file FDRepr.hpp.

References bufend, buffree, fdout, and FileReprBase::file_buffer.


Member Data Documentation

char* FDRepr::bufend [private]
 

iostream buffer

Definition at line 113 of file FDRepr.hpp.

Referenced by FDRepr(), flush(), and writeToFile().

char * FDRepr::buffree [private]
 

Definition at line 113 of file FDRepr.hpp.

Referenced by FDRepr(), flush(), and writeToFile().

int FDRepr::fdout [protected]
 

The file that contain the transactions.

Definition at line 110 of file FDRepr.hpp.

Referenced by FDRepr(), flush(), readFromFile(), rewind(), writeToFile(), and ~FDRepr().

char* FileReprBase::file_buffer [protected, inherited]
 

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().

std::streamsize FileReprBase::file_buffer_size [protected, inherited]
 

the size of the lowest level buffer

Definition at line 91 of file FileReprBase.hpp.

Referenced by FDRepr(), and flush().

Mode FileReprBase::mode [protected, inherited]
 

operating mode

Definition at line 93 of file FileReprBase.hpp.

Referenced by SimpleOutputTester::doTest(), FileReprBase::FileReprBase(), and ~FDRepr().


The documentation for this class was generated from the following file:
Generated on Sun Sep 17 17:55:18 2006 for FIM environment by  doxygen 1.4.4