DataIo Class Reference

#include <data-io.h>

Inherits DataVisitor.

Inherited by DataBinner, and DataTexter.

Collaboration diagram for DataIo:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DataIo (QString fn, const char *mode)
 DataIo (FILE *f)
virtual ~DataIo ()
Data read ()
virtual void write (Data data)=0
void visit (Data &data)
virtual void start_writing ()
virtual void start_reading ()

Protected Member Functions

virtual void read_into (Data &target)=0
virtual void write_fileformat_versionnr ()=0
virtual int read_fileformat_versionnr ()=0

Protected Attributes

FILE * text
bool opened_file_myself
int version


Detailed Description

Definition at line 31 of file data-io.h.


Constructor & Destructor Documentation

DataIo::DataIo ( QString  fn,
const char *  mode 
)

Definition at line 40 of file data-io.cpp.

DataIo::DataIo ( FILE *  f  ) 

Definition at line 60 of file data-io.cpp.

DataIo::~DataIo (  )  [virtual]

Definition at line 68 of file data-io.cpp.


Member Function Documentation

Data DataIo::read (  ) 

Definition at line 89 of file data-io.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual int DataIo::read_fileformat_versionnr (  )  [protected, pure virtual]

Implemented in DataTexter, and DataBinner.

Here is the caller graph for this function:

virtual void DataIo::read_into ( Data target  )  [protected, pure virtual]

Implemented in DataTexter, and DataBinner.

Here is the caller graph for this function:

void DataIo::start_reading (  )  [virtual]

Reimplemented in DataBinner.

Definition at line 84 of file data-io.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataIo::start_writing (  )  [virtual]

Definition at line 79 of file data-io.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataIo::visit ( Data data  ) 

Reimplemented from DataVisitor.

Definition at line 74 of file data-io.cpp.

virtual void DataIo::write ( Data  data  )  [pure virtual]

Implemented in DataTexter, and DataBinner.

virtual void DataIo::write_fileformat_versionnr (  )  [protected, pure virtual]

Implemented in DataTexter, and DataBinner.

Here is the caller graph for this function:


Member Data Documentation

bool DataIo::opened_file_myself [protected]

Definition at line 35 of file data-io.h.

FILE* DataIo::text [protected]

Definition at line 34 of file data-io.h.

int DataIo::version [protected]

Definition at line 36 of file data-io.h.


The documentation for this class was generated from the following files:

Generated on Sat Feb 20 19:04:27 2010 for Data Objects by  doxygen 1.5.9