summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-09 19:31:21 +0200
committerEdoardo La Greca2025-08-09 19:31:21 +0200
commita07d4fe60ab0eac2a20723508db8159c6955b855 (patch)
treea44d5c8d52b1f08ed6cc488dece21a4142ee7b11
parent31c4a211c483363bd254d41c3451e98116b05c4a (diff)
add addQIDToFID method to PathInfo
-rw-r--r--src/main/kotlin/PathInfo.kt7
1 files changed, 7 insertions, 0 deletions
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
@@ -24,6 +24,13 @@ class PathInfo() {
}
/**
+ * 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.
*/
fun removeFID(fid: UInt) {