From a07d4fe60ab0eac2a20723508db8159c6955b855 Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Sat, 9 Aug 2025 19:31:21 +0200 Subject: add addQIDToFID method to PathInfo --- src/main/kotlin/PathInfo.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/kotlin/PathInfo.kt') diff --git a/src/main/kotlin/PathInfo.kt b/src/main/kotlin/PathInfo.kt index c803e17..2aee406 100644 --- a/src/main/kotlin/PathInfo.kt +++ b/src/main/kotlin/PathInfo.kt @@ -23,6 +23,13 @@ class PathInfo() { this.paths.add(path) } + /** + * Add a QID to an existing FID. Do nothing if the given FID does not exist. + */ + fun addQIDToFID(fid: UInt, qid: QID) { + findByFID(fid)?.qid = qid + } + /** * Remove a FID. */ -- cgit v1.2.3