5#ifndef TRIGDFEMULATOR_FILEREADERWRITER_H_
6#define TRIGDFEMULATOR_FILEREADERWRITER_H_
12#include <boost/property_tree/ptree.hpp>
14#include "EventStorage/DataReader.h"
15#include "EventStorage/pickDataReader.h"
16#include "EventStorage/DataWriter.h"
43 void writeEvent(
const unsigned int & size_in_bytes,
const uint32_t *event);
63 std::unique_ptr<EventStorage::DataWriter>
m_writer;
std::string m_outFileName
FileReaderWriter(const boost::property_tree::ptree &tree)
std::unique_ptr< EventStorage::DataWriter > m_writer
std::vector< std::string > m_fileNames
void print()
Print configuration of the FileReaderWriter.
void writeEvent(const unsigned int &size_in_bytes, const uint32_t *event)
Write event to file.
std::unique_ptr< uint32_t[]> getNextEvent()
Get serialized next event and put the FullEventFragment in the memory location.
std::unique_ptr< uint32_t[]> getEventFromFile()
Read the current Event from File.
std::unique_ptr< EventStorage::DataReader > m_currReader
void skipEvents(uint num)