Tome
A generic data editor for games supporting arbitrary input and output formats.
recordsetserializer.h
1 #ifndef RECORDSETSERIALIZER_H
2 #define RECORDSETSERIALIZER_H
3 
4 #include <QIODevice>
5 
6 namespace Tome
7 {
8  class RecordSet;
9 
13  class RecordSetSerializer : public QObject
14  {
15  Q_OBJECT
16 
17  public:
23  void serialize(QIODevice& device, const RecordSet& recordSet) const;
24 
30  void deserialize(QIODevice& device, RecordSet& recordSet) const;
31 
32  signals:
40  void progressChanged(const QString title, const QString text, const int currentValue, const int maximumValue) const;
41 
42  private:
43  static const QString ElementDisplayName;
44  static const QString ElementEditorIconFieldId;
45  static const QString ElementId;
46  static const QString ElementItem;
47  static const QString ElementKey;
48  static const QString ElementParentId;
49  static const QString ElementReadOnly;
50  static const QString ElementRecord;
51  static const QString ElementRecords;
52  static const QString ElementValue;
53  };
54 }
55 
56 #endif // RECORDSETSERIALIZER_H
Definition: commandlineoptions.h:6
Named set of Tome records.
Definition: recordset.h:11
void deserialize(QIODevice &device, RecordSet &recordSet) const
Reads the passed record set from the specified device.
Definition: recordsetserializer.cpp:127
void progressChanged(const QString title, const QString text, const int currentValue, const int maximumValue) const
Progress of the current record operation has changed.
void serialize(QIODevice &device, const RecordSet &recordSet) const
Writes the passed record set to the specified device.
Definition: recordsetserializer.cpp:23
Reads and writes records from any device.
Definition: recordsetserializer.h:13