Tome
A generic data editor for games supporting arbitrary input and output formats.
recordtableimporttemplate.h
1 #ifndef RECORDTABLEIMPORTTEMPLATE_H
2 #define RECORDTABLEIMPORTTEMPLATE_H
3 
4 #include <QMap>
5 #include <QString>
6 #include <QStringList>
7 
8 #include "tabletype.h"
9 
10 namespace Tome
11 {
16  {
17  public:
21  QString name;
22 
26  QString path;
27 
31  QString idColumn;
32 
36  QStringList ignoredIds;
37 
41  QMap<QString, QString> columnMap;
42 
46  TableType::TableType sourceType;
47 
51  QString rootRecordId;
52 
56  QMap<QString, QString> parameters;
57  };
58 }
59 
60 #endif // RECORDTABLEIMPORTTEMPLATE_H
Definition: commandlineoptions.h:6
QStringList ignoredIds
Entries of the ID column that should cause the importer to skip the respective row.
Definition: recordtableimporttemplate.h:36
QString rootRecordId
Id of the record to parent all imported new records to.
Definition: recordtableimporttemplate.h:51
QMap< QString, QString > columnMap
Maps column headers to field IDs (defaults to just use the column header).
Definition: recordtableimporttemplate.h:41
QString idColumn
Header the table column which contains the record IDs.
Definition: recordtableimporttemplate.h:31
TableType::TableType sourceType
Type of the import data source.
Definition: recordtableimporttemplate.h:46
QString name
Name of this import template, as shown in the UI.
Definition: recordtableimporttemplate.h:21
QMap< QString, QString > parameters
Optional additional import parameters (e.g. which table to import).
Definition: recordtableimporttemplate.h:56
QString path
Relative path of this impoirt template on disk.
Definition: recordtableimporttemplate.h:26
Template for importing record data.
Definition: recordtableimporttemplate.h:15