Skip to content

[INTERNAL,TEST] Separate filesystem configuration and temporary-file policy - #10089

Closed
timosachsenberg wants to merge 4 commits into
OpenMS:developfrom
timosachsenberg:architecture/batch-05-file-config
Closed

timosachsenberg wants to merge 4 commits into
OpenMS:developfrom
timosachsenberg:architecture/batch-05-file-config

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Implements step 5 of #10083. Stacked on #10088 (filename extraction); merge that PR first. The focused step-5 diff is timosachsenberg/OpenMS@architecture/batch-04-filename-utils...architecture/batch-05-file-config.

File.cpp currently combines basic filesystem/shared-data operations with INI settings and temporary-file policy. FileConfig.cpp now contains the settings and user/temp/database path policy. FileTemp.cpp contains both TempDir constructors, the unique-directory implementation, temporary filename allocation, and its registry definition. The definitions retain their existing method bodies and remain in the same OpenMS library.

Basic File.cpp no longer includes Param/ParamXMLFile or references the settings/temp-policy methods. This resolves the two settings-related File.cpp edges recorded in #10083. The File facade still exposes settings-dependent APIs; this does not claim the entire class is independently linkable.

The File class test now covers the explicit-parent TempDir constructor and unique/explicit temporary filename allocation, in addition to the existing default constructor, cleanup, and settings tests.

Validation: all extracted blocks compared verbatim; no configuration/temp-policy references remain in File.cpp; the #10083 include check reports seven remaining edges; git diff --check passes. File_test and platform compilation are submitted to CI. No local OpenMS build was run. Kept draft pending CI and its prerequisite.

Keep the established filename rules in FileNameUtils and preserve the
FileHandler API as forwarding methods. Share basename handling via PathUtils
and remove format-dispatch dependencies from File and ProteinIdentification.

Part of OpenMS#10083, step 4.
…policy

Move settings methods into FileConfig.cpp and temporary-directory/registry
implementation into FileTemp.cpp. Keep public definitions and method bodies
unchanged, with core File.cpp free of settings and temp-policy references.

Part of OpenMS#10083, step 5; follows step 4.
The baseline is recorded in OpenMS#10083; no scanner or CI check is added.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

Copy link
Copy Markdown
Contributor Author

Superseded by #10098, which carries the same step-5 change rebased onto develop now that #10088 is merged. Closing this one.


Generated by Claude Code

timosachsenberg added a commit that referenced this pull request Sep 9, 2026
…policy (#10098)

Move settings methods into FileConfig.cpp and temporary-directory/registry
implementation into FileTemp.cpp. Keep public definitions and method bodies
unchanged, with core File.cpp free of settings and temp-policy references,
and point File.cpp readers to the sibling sources.

Part of #10083, step 5; follows step 4 (#10088). Supersedes #10089.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant