3#include <boost/thread/future.hpp>
4#include <spdlog/spdlog.h>
51 std::map<std::string, std::unique_ptr<RootFile>> root_files_;
61 template <
typename WriterType>
62 void write_to_files(std::map<std::string, std::unique_ptr<WriterType>>& writers,
auto make_future)
64 for (
auto& [key,
writer] : writers)
66 auto fut = make_future(*
writer);
Manager(Manager &&)=default
Manager(workflow::Handler *processor)
Manager & operator=(Manager &&)=default
Manager(const Manager &)=delete
std::map< std::string, std::unique_ptr< BinaryFile > > binary_files_
auto add_binary_file(const std::string &filename, process::DataConvertOptions deser_mode) -> bool
auto add_root_file(const std::string &filename) -> bool
auto is_convert_required(process::DataConvertOptions dependee) const -> bool
std::map< std::string, std::unique_ptr< Json > > json_files_
Manager & operator=(const Manager &)=delete
void set_output_filenames(const std::vector< std::string > &filenames)
std::vector< boost::unique_future< std::optional< int > > > write_futures_
std::map< process::DataConvertOptions, int > convert_count_map_
std::map< std::string, std::unique_ptr< UDP > > udp_files_
void write_to_files(std::map< std::string, std::unique_ptr< WriterType > > &writers, auto make_future)
workflow::Handler * workflow_handler_
auto add_udp_file(const std::string &filename, process::DataConvertOptions deser_mode) -> bool
void write_with(auto make_future)
auto add_json_file(const std::string &filename) -> bool
constexpr auto EMPTY_CONVERT_OPTION_COUNT_MAP