1 #ifndef EUDAQ_INCLUDED_AidaFileWriter
2 #define EUDAQ_INCLUDED_AidaFileWriter
4 #include "eudaq/AidaPacket.hh"
12 virtual void StartRun(
unsigned runnumber) = 0;
13 virtual void WritePacket(std::shared_ptr<AidaPacket>) = 0;
14 virtual unsigned long long FileBytes()
const = 0;
15 void SetFilePattern(
const std::string &p) { m_filepattern = p; }
22 std::string m_filepattern;
28 const std::string ¶ms =
"");
29 template <
typename T>
static void Register(
const std::string &name) {
30 do_register(name, filewriterfactory<T>);
33 static std::vector<std::string> GetTypes();
37 static AidaFileWriter *filewriterfactory(
const std::string ¶ms) {
40 static void do_register(
const std::string &name, factoryfunc);
46 AidaFileWriterFactory::Register<T>(name);
51 #endif // EUDAQ_INCLUDED_AidaFileWriter
Definition: AidaFileWriter.hh:43
Definition: AidaFileWriter.hh:10
Definition: AidaFileWriter.hh:25