Repository navigation
[DOC] ZipIfstream: surface NotImplemented-without-libzip; @ingroup FileIO; tighten contracts - #9345
Conversation
…leIO; tighten contracts - Surface the previously-undocumented Exception::NotImplemented that open() and read() raise when OpenMS is built without libzip (ZipIfstream.cpp:100-104 / :135-139). The default constructor, close(), isOpen() and streamEnd() remain usable even without libzip. - Add @InGroup FileIO (matches Bzip2Ifstream). - Tighten the class brief to describe the lifecycle (construct/open -> read until short return -> auto-close) and that copy and move are deliberately suppressed. - read(): document the n==0 no-op shortcut (ZipIfstream.cpp:110-113); promote @exception tags to @throws; cover all three exception types. - open(): tighten the existing @exception list with grounded sources (FileNotFound when missing, FileNotReadable for archive open or entry open failure, FileEmpty when zero non-directory entries, ParseError when more than one). - Add ///< field docs explaining why the libzip handles are typed as void* (to keep zip.h out of the public header) and what stream_at_end_ means. No behaviour change. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR updates the Doxygen documentation for the ChangesZipIfstream Documentation Enhancement
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Exception::NotImplementedthatopen()andread()raise when OpenMS is built without libzip (ZipIfstream.cpp:100-104, :135-139). The default constructor,close(),isOpen()andstreamEnd()remain usable even without libzip.@ingroup FileIO(matchesBzip2Ifstream).readuntil short return -> auto-close) and the fact that copy and move are deliberately suppressed.read(): document then == 0no-op shortcut (ZipIfstream.cpp:110-113); promote@exceptiontags to@throws; cover all three exception types.open(): tighten the existing@exceptionlist with grounded sources (FileNotFoundwhen missing,FileNotReadablefor archive-open / entry-open failure,FileEmptywhen zero non-directory entries,ParseErrorwhen more than one).///<field docs explaining why the libzip handles are typed asvoid*and whatstream_at_end_means.No behaviour change.
Test plan
cmake --build OpenMS-build --target OpenMSbuilds cleanly.🤖 Generated with Claude Code
Summary by CodeRabbit