Export procedure
Export is done using the ExportCommand structure from the previous chapter.
When executing, the Command structure's fields represent the following:
| Field | Meaning |
|---|---|
| Command | Always set to Export |
| Parameter | Type being exported (Project, Station, Test, Measurement, Graph, Result) |
| Parameter2 | Parent UID, empty if the Parameter is set to Project |
When exporting process has produced all items that fit the specified filter, the End command is sent.
Exported data
When the data is in the process of being exported, every export item is preceeded by an ImportExportCommand protobuf, which contains the data about the UIDs, which can then be used to generate a path on the filesystem.
The ImportExportCommand also contains some flags, which can give us some additional information.