Convert doxygen to rst for 3MFReader/Writer and AMFReader

This commit is contained in:
Nino van Hooff 2020-05-08 15:14:39 +02:00
parent 679739d09d
commit 8f3827d5ae
6 changed files with 95 additions and 64 deletions

View file

@ -107,11 +107,13 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
import json
archive.writestr(file_in_archive, json.dumps(metadata, separators = (", ", ": "), indent = 4, skipkeys = True))
## Helper function that writes ContainerStacks, InstanceContainers and DefinitionContainers to the archive.
# \param container That follows the \type{ContainerInterface} to archive.
# \param archive The archive to write to.
@staticmethod
def _writeContainerToArchive(container, archive):
"""Helper function that writes ContainerStacks, InstanceContainers and DefinitionContainers to the archive.
:param container: That follows the :type{ContainerInterface} to archive.
:param archive: The archive to write to.
"""
if isinstance(container, type(ContainerRegistry.getInstance().getEmptyInstanceContainer())):
return # Empty file, do nothing.