Mercurial > hg > svcore
comparison base/DataExportOptions.h @ 1816:fd5a87f3c5b4 csv-export-dialog
Overhaul and tidy the export options, and add support for header row
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2020 15:39:12 +0000 |
parents | c546429d4c2f |
children |
comparison
equal
deleted
inserted
replaced
1815:c546429d4c2f | 1816:fd5a87f3c5b4 |
---|---|
16 #define DATA_EXPORT_OPTIONS_H | 16 #define DATA_EXPORT_OPTIONS_H |
17 | 17 |
18 enum DataExportOption | 18 enum DataExportOption |
19 { | 19 { |
20 DataExportDefaults = 0x0, | 20 DataExportDefaults = 0x0, |
21 | |
22 /** | |
23 * Export sparse event-based models as if they were dense models, | |
24 * writing an event at every interval of the model's | |
25 * resolution. Where no event is present in the actual model, a | |
26 * constant "fill event" is interpolated instead. | |
27 */ | |
21 DataExportFillGaps = 0x1, | 28 DataExportFillGaps = 0x1, |
22 DataExportOmitLevels = 0x2, | 29 |
23 DataExportWriteTimeInFrames = 0x4 // otherwise in seconds | 30 /** |
31 * Omit the level attribute from exported events. | |
32 */ | |
33 DataExportOmitLevel = 0x2, | |
34 | |
35 /** | |
36 * Always include a timestamp in the first column. Otherwise | |
37 * timestamps will only be included in sparse models. | |
38 */ | |
39 DataExportAlwaysIncludeTimestamp = 0x4, | |
40 | |
41 /** | |
42 * Use sample frames rather than seconds for time and duration | |
43 * values. | |
44 */ | |
45 DataExportWriteTimeInFrames = 0x8, | |
46 | |
47 /** | |
48 * Write a header row before any data rows. | |
49 */ | |
50 DataExportIncludeHeader = 0x10 | |
24 }; | 51 }; |
25 | 52 |
26 typedef int DataExportOptions; | 53 typedef int DataExportOptions; |
27 | 54 |
28 #endif | 55 #endif |