|
ACTS
Experiment-independent tracking
|
Abstract base class for detray detector component writers. More...
#include <detray/io/frontend/writer_interface.hpp>
Public Member Functions | |
| writer_interface ()=delete | |
| All writers must define a file extension. | |
| writer_interface (const std::string &ext) | |
File gets created with a fixed ext. | |
| virtual | ~writer_interface ()=default |
| Default destructor. | |
| const std::string & | file_extension () const |
| 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. | |
Abstract base class for detray detector component writers.
|
explicit |
File gets created with a fixed ext.
| ext | file extension handled by this writer |
| const std::string & detray::io::writer_interface< detector_t >::file_extension | ( | ) | const |
|
pure virtual |
Write detector components to a path using the supplied name map.
| detector | detector components to serialize |
| names | map used to name detector components |
| mode | stream open mode |
| path | output directory guaranteed to exist by the caller |
Implemented in detray::io::json_converter< detector_t, backend_t >.