Export procedure

Export is done using the ExportCommand structure from the previous chapter.

When executing, the Command structure's fields represent the following:

FieldMeaning
CommandAlways set to Export
ParameterType being exported (Project, Station, Test, Measurement, Graph, Result)
Parameter2Parent 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.