#include <data-io.h>
Inherits DataIo.
Public Member Functions | |
DataTexter (QString fn, const char *mode) | |
DataTexter (FILE *f) | |
virtual void | read_into (Data &target) |
virtual void | write (Data data) |
Static Public Member Functions | |
static Data | read_file (QString filename) |
static Data | read_file (FILE *file) |
static void | write (Data data, QString filename) |
static void | write (Data data, FILE *target) |
Protected Member Functions | |
virtual void | write_fileformat_versionnr () |
virtual int | read_fileformat_versionnr () |
virtual void | visit (Symbol &symbol) |
virtual void | visit (Token &token) |
virtual void | visit (Float4 &f4) |
virtual void | visit (Float8 &f4) |
template<int D, class T > | |
void | visitArray (Array< D, T > &array) |
template<class T > | |
void | dumpSequence (Array< 1, T > &array) |
template<class T > | |
void | dumpSequence (Array< 2, T > &array) |
template<class T > | |
void | dumpSequence (Array< 3, T > &array) |
template<class T > | |
void | dumpSequence (Array< 4, T > &array) |
template<class T > | |
void | dumpSequence (Array< 5, T > &array) |
template<class T > | |
void | dumpSequence (Array< 6, T > &array) |
template<class T > | |
void | dumpSequence (Array< 7, T > &array) |
template<class T > | |
void | dumpSequence (Array< 8, T > &array) |
virtual void | visit (String &str) |
Protected Attributes | |
ARRAY_TYPES |
Definition at line 58 of file data-io.h.
DataTexter::DataTexter | ( | QString | fn, | |
const char * | mode | |||
) |
Definition at line 318 of file data-io.cpp.
DataTexter::DataTexter | ( | FILE * | f | ) |
Definition at line 326 of file data-io.cpp.
void DataTexter::dumpSequence | ( | Array< 8, T > & | array | ) | [inline, protected] |
void DataTexter::dumpSequence | ( | Array< 7, T > & | array | ) | [inline, protected] |
void DataTexter::dumpSequence | ( | Array< 6, T > & | array | ) | [inline, protected] |
void DataTexter::dumpSequence | ( | Array< 5, T > & | array | ) | [inline, protected] |
void DataTexter::dumpSequence | ( | Array< 4, T > & | array | ) | [inline, protected] |
void DataTexter::dumpSequence | ( | Array< 3, T > & | array | ) | [inline, protected] |
void DataTexter::dumpSequence | ( | Array< 2, T > & | array | ) | [inline, protected] |
void DataTexter::dumpSequence | ( | Array< 1, T > & | array | ) | [inline, protected] |
Definition at line 116 of file data-io.cpp.
Data DataTexter::read_file | ( | FILE * | file | ) | [static] |
Data DataTexter::read_file | ( | QString | filename | ) | [static] |
int DataTexter::read_fileformat_versionnr | ( | ) | [protected, virtual] |
returns the file format version of the compiled version that saved the data. Returns 0 if it could not be read.
Implements DataIo.
Definition at line 503 of file data-io.cpp.
void DataTexter::read_into | ( | Data & | target | ) | [virtual] |
Implements DataIo.
Definition at line 445 of file data-io.cpp.
void DataTexter::visit | ( | String & | str | ) | [protected, virtual] |
virtual void DataTexter::visit | ( | Float8 & | f4 | ) | [protected, virtual] |
Reimplemented from DataVisitor.
void DataTexter::visit | ( | Float4 & | f4 | ) | [protected, virtual] |
void DataTexter::visit | ( | Token & | token | ) | [protected, virtual] |
Reimplemented from DataVisitor.
Definition at line 170 of file data-io.cpp.
void DataTexter::visit | ( | Symbol & | symbol | ) | [protected, virtual] |
Reimplemented from DataVisitor.
Definition at line 165 of file data-io.cpp.
void DataTexter::visitArray | ( | Array< D, T > & | array | ) | [inline, protected] |
void DataTexter::write | ( | Data | data, | |
FILE * | target | |||
) | [static] |
void DataTexter::write | ( | Data | data, | |
QString | filename | |||
) | [static] |
void DataTexter::write | ( | Data | data | ) | [virtual] |
Implements DataIo.
Definition at line 492 of file data-io.cpp.
void DataTexter::write_fileformat_versionnr | ( | ) | [protected, virtual] |
DataTexter::ARRAY_TYPES [protected] |