ROOM » Core » SourceInfo

SourceInfo Class

Format-neutral provenance for a cell view (tool, versions, comments). More…

Header:#include "source_info.h"
CMake:target_link_libraries(mytarget PRIVATE ROOM::room)

Public Functions

format(), setFormat()Source format id (e.g. xschem, qucs).
toolVersion(), fileVersion()Tool and file format versions.
comments()Free-text header comments.
bool empty() constTrue when all fields unset.

Detailed Description

Stored on CellContent::sourceInfo(). Importers populate it; serialization maps to neutral Property keys:

  • core.source.format
  • core.source.toolVersion
  • core.source.fileVersion
  • core.source.comments

Free functions: appendSourceInfoProperties(), extractSourceInfo().