#include <data-io.h>
Inherits DataVisitor.
Inherited by DataBinner, and DataTexter.
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 |
Definition at line 31 of file data-io.h.
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.
Data DataIo::read | ( | ) |
Definition at line 89 of file data-io.cpp.
virtual int DataIo::read_fileformat_versionnr | ( | ) | [protected, pure virtual] |
virtual void DataIo::read_into | ( | Data & | target | ) | [protected, pure virtual] |
void DataIo::start_reading | ( | ) | [virtual] |
Reimplemented in DataBinner.
Definition at line 84 of file data-io.cpp.
void DataIo::start_writing | ( | ) | [virtual] |
Definition at line 79 of file data-io.cpp.
void DataIo::visit | ( | Data & | data | ) |
virtual void DataIo::write | ( | Data | data | ) | [pure virtual] |
Implemented in DataTexter, and DataBinner.
virtual void DataIo::write_fileformat_versionnr | ( | ) | [protected, pure virtual] |
bool DataIo::opened_file_myself [protected] |
FILE* DataIo::text [protected] |
int DataIo::version [protected] |