File Writer.h

namespace podio

Functions

Writer makeWriter(const std::string &filename, const std::string &type = "default")
class Writer
#include <podio/Writer.h>

Public Functions

template<typename T>
inline Writer(std::unique_ptr<T> reader)
Writer(const Writer&) = delete
Writer &operator=(const Writer&) = delete
Writer(Writer&&) = default
Writer &operator=(Writer&&) = default
~Writer() = default
inline void writeFrame(const podio::Frame &frame, const std::string &category)
inline void writeFrame(const podio::Frame &frame, const std::string &category, const std::vector<std::string> &collections)
inline void writeEvent(const podio::Frame &frame)
inline void writeEvent(const podio::Frame &frame, const std::vector<std::string> &collections)
inline void finish()

Private Members

std::unique_ptr<WriterConcept> m_self = {nullptr}
struct WriterConcept

Public Functions

virtual ~WriterConcept() = default
virtual void writeFrame(const podio::Frame &frame, const std::string &category, const std::vector<std::string> &collections) = 0
virtual void finish() = 0
template<typename T>
struct WriterModel : public podio::Writer::WriterConcept

Public Functions

inline WriterModel(std::unique_ptr<T> writer)
WriterModel(const WriterModel&) = delete
WriterModel &operator=(const WriterModel&) = delete
WriterModel(WriterModel&&) = default
WriterModel &operator=(WriterModel&&) = default
~WriterModel() = default
inline void writeFrame(const podio::Frame &frame, const std::string &category, const std::vector<std::string> &collections) override
inline void finish() override

Public Members

std::unique_ptr<T> m_writer = {nullptr}