Tome
A generic data editor for games supporting arbitrary input and output formats.
Signals | Public Member Functions | List of all members
Tome::RecordSetSerializer Class Reference

Reads and writes records from any device. More...

#include <recordsetserializer.h>

Inheritance diagram for Tome::RecordSetSerializer:

Signals

void progressChanged (const QString title, const QString text, const int currentValue, const int maximumValue) const
 Progress of the current record operation has changed. More...
 

Public Member Functions

void serialize (QIODevice &device, const RecordSet &recordSet) const
 Writes the passed record set to the specified device. More...
 
void deserialize (QIODevice &device, RecordSet &recordSet) const
 Reads the passed record set from the specified device. More...
 

Detailed Description

Reads and writes records from any device.

Member Function Documentation

◆ deserialize()

void RecordSetSerializer::deserialize ( QIODevice &  device,
RecordSet recordSet 
) const

Reads the passed record set from the specified device.

Parameters
deviceDevice to read the record set from.
recordSetRecord set to fill.

◆ progressChanged

void Tome::RecordSetSerializer::progressChanged ( const QString  title,
const QString  text,
const int  currentValue,
const int  maximumValue 
) const
signal

Progress of the current record operation has changed.

Parameters
titleTitle of the current record operation step.
textDetails of the current record operation step.
currentValueCurrent progress value of the current record operation step.
maximumValueMaximum progress value of the current record operation step.

◆ serialize()

void RecordSetSerializer::serialize ( QIODevice &  device,
const RecordSet recordSet 
) const

Writes the passed record set to the specified device.

Parameters
deviceDevice to write the record set to.
recordSetRecord set to write.

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