Tome
A generic data editor for games supporting arbitrary input and output formats.
recordexporttemplate.h
1 #ifndef RECORDEXPORTTEMPLATE_H
2 #define RECORDEXPORTTEMPLATE_H
3 
4 #include <QMap>
5 #include <QString>
6 
7 namespace Tome
8 {
13  {
14  public:
19 
24 
29 
34 
39 
44 
49 
54 
59 
63  QString fileExtension;
64 
68  QString listTemplate;
69 
74 
79 
84 
88  QString mapTemplate;
89 
93  QString mapItemTemplate;
94 
99 
103  QString name;
104 
108  QString path;
109 
114 
119 
123  QString recordTemplate;
124 
128  QMap<QString, QString> typeMap;
129 
133  QStringList ignoredRecords;
134 
138  QStringList ignoredFields;
139  };
140 }
141 
142 #endif // RECORDEXPORTTEMPLATE_H
bool exportAsTable
Whether to fill each record export so that all fields are exported for all records.
Definition: recordexporttemplate.h:28
Definition: commandlineoptions.h:6
bool exportLocalizedFieldsOnly
Whether to skip all fields whose type does not have the LocalizedStringFacet applied.
Definition: recordexporttemplate.h:48
QString mapItemTemplate
Template to apply for exporting map field items.
Definition: recordexporttemplate.h:93
QString recordDelimiter
Delimiter to insert between two records.
Definition: recordexporttemplate.h:113
QStringList ignoredFields
Fields to skip while exporting.
Definition: recordexporttemplate.h:138
bool exportRoots
Whether to export records without parent.
Definition: recordexporttemplate.h:33
Template for exporting record data.
Definition: recordexporttemplate.h:12
QString localizedFieldValueTemplate
Template to apply for exporting all values of fields whose type has the LocalizedStringFacet applied...
Definition: recordexporttemplate.h:83
QMap< QString, QString > typeMap
Map that specifies which type names to replace on export.
Definition: recordexporttemplate.h:128
QString recordFileTemplate
Main export template that recursively applies all other templates.
Definition: recordexporttemplate.h:118
QString recordTemplate
Template to apply for exporting records.
Definition: recordexporttemplate.h:123
bool exportInnerNodes
Whether to export records with parent and children.
Definition: recordexporttemplate.h:38
QString fieldValueTemplate
Template to apply for exporting field values.
Definition: recordexporttemplate.h:58
QString componentDelimiter
Delimiter to insert between two components.
Definition: recordexporttemplate.h:18
QStringList ignoredRecords
Records to skip while exporting.
Definition: recordexporttemplate.h:133
QString listItemDelimiter
Delimiter to insert between two list field items.
Definition: recordexporttemplate.h:78
QString listTemplate
Template to apply for exporting list field values.
Definition: recordexporttemplate.h:68
QString componentTemplate
Template to apply for exporting components.
Definition: recordexporttemplate.h:23
bool exportLeafs
Whether to export records without children.
Definition: recordexporttemplate.h:43
QString mapItemDelimiter
Delimiter to insert between two map field items.
Definition: recordexporttemplate.h:98
QString mapTemplate
Template to apply for exporting map field values.
Definition: recordexporttemplate.h:88
QString fieldValueDelimiter
Delimiter to insert between two field values.
Definition: recordexporttemplate.h:53
QString fileExtension
Extension of the data files to write the exported record data to.
Definition: recordexporttemplate.h:63
QString listItemTemplate
Template to apply for exporting list field items.
Definition: recordexporttemplate.h:73
QString path
Relative path of this export template on disk.
Definition: recordexporttemplate.h:108
QString name
Name of this export template, as shown in the UI.
Definition: recordexporttemplate.h:103