#pragma once #include "frame_result.hpp" #include #include namespace cms { struct OutputOptions { bool original{},annotated{},results{}; std::filesystem::path directory; bool enabled() const {return original||annotated||results;} }; // Called by the inference worker; one matching filename stem per completed frame. class OutputWriter { public: explicit OutputWriter(OutputOptions options); void write(FrameResult const& result); private: OutputOptions options_; std::string runId_; }; }