mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 22:24:13 +02:00
3089408b19
One row per element and element it is linked to -- a coil and its contacts, a pair of folio reports -- from each side, with the contact group the element saved for it. Nothing reads it yet: cross-references are the main thing one folio needs from another, and this is what lets them be answered without building every folio. Filled like the other tables: from the document when it can be read exactly (a link only one side lists, between kinds that cannot link, or giving a contact a second coil is left to the folios), from the folios otherwise. A link made or undone afterwards rewrites that element's rows when the database is next read, as drawing items are, since the contact group is set after the link is made. Test: tst_databasefromdocument compares the link table both ways on every example; linksAreListed checks a coil and contact (with a group) in m_000.qet, oneSidedLinkFallsBack the refusal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Wga9B92BNurDEtxxtCDxf