File Reader.h

namespace podio

Functions

Reader makeReader(const std::string &filename)
Reader makeReader(const std::vector<std::string> &filename)
class Reader
#include <podio/Reader.h>

Public Functions

template<typename T>
Reader(std::unique_ptr<T>)
Reader(const Reader&) = delete
Reader &operator=(const Reader&) = delete
Reader(Reader&&) = default
Reader &operator=(Reader&&) = default
~Reader() = default
inline podio::Frame readNextFrame(const std::string &name)
inline podio::Frame readNextEvent()
inline podio::Frame readFrame(const std::string &name, size_t index)
inline podio::Frame readEvent(size_t index)
inline size_t getEntries(const std::string &name) const
inline size_t getEvents() const
inline podio::version::Version currentFileVersion() const
inline std::vector<std::string_view> getAvailableCategories() const
inline const std::string_view getDatamodelDefinition(const std::string &name) const
inline std::vector<std::string> getAvailableDatamodels() const

Private Members

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

Public Functions

virtual ~ReaderConcept() = default
virtual podio::Frame readNextFrame(const std::string &name) = 0
virtual podio::Frame readFrame(const std::string &name, size_t index) = 0
virtual size_t getEntries(const std::string &name) const = 0
virtual podio::version::Version currentFileVersion() const = 0
virtual std::vector<std::string_view> getAvailableCategories() const = 0
virtual const std::string_view getDatamodelDefinition(const std::string &name) const = 0
virtual std::vector<std::string> getAvailableDatamodels() const = 0
template<typename T>
struct ReaderModel : public podio::Reader::ReaderConcept

Public Functions

inline ReaderModel(std::unique_ptr<T> reader)
ReaderModel(const ReaderModel&) = delete
ReaderModel &operator=(const ReaderModel&) = delete
ReaderModel(ReaderModel&&) = default
ReaderModel &operator=(ReaderModel&&) = default
~ReaderModel() = default
inline podio::Frame readNextFrame(const std::string &name) override
inline podio::Frame readFrame(const std::string &name, size_t index) override
inline size_t getEntries(const std::string &name) const override
inline podio::version::Version currentFileVersion() const override
inline std::vector<std::string_view> getAvailableCategories() const override
inline const std::string_view getDatamodelDefinition(const std::string &name) const override
inline std::vector<std::string> getAvailableDatamodels() const override

Public Members

std::unique_ptr<T> m_reader