12#include "detray/builders/detector_builder.hpp"
23template <
class detector_t>
45 virtual std::string
write(
const detector_t& detector,
46 const typename detector_t::name_map& names,
47 const std::ios_base::openmode mode,
48 const std::filesystem::path& path) = 0;
52 std::string m_file_extension;
writer_interface(const std::string &ext)
File gets created with a fixed ext.
Definition writer_interface.hpp:31
const std::string & file_extension() const
Definition writer_interface.hpp:37
writer_interface()=delete
All writers must define a file extension.
virtual ~writer_interface()=default
Default destructor.
virtual std::string write(const detector_t &detector, const typename detector_t::name_map &names, const std::ios_base::openmode mode, const std::filesystem::path &path)=0
Write detector components to a path using the supplied name map.
The following enums are global for all detectors.
Definition concepts.hpp:18