EUDAQ
 All Classes Namespaces Files Functions Variables Pages
AidaFileReader.hh
1 #ifndef EUDAQ_INCLUDED_AidaFileReader
2 #define EUDAQ_INCLUDED_AidaFileReader
3 
4 #include <string>
5 #include <memory>
6 #include "eudaq/Platform.hh"
7 
8 namespace eudaq {
9 
10  class FileDeserializer;
11  class AidaPacket;
12 
13  class DLLEXPORT AidaFileReader {
14  public:
15  AidaFileReader(const std::string &filename);
16 
17  virtual ~AidaFileReader();
18  bool readNext();
19  std::string Filename() const { return m_filename; }
20  unsigned long long RunNumber() const { return m_runNumber; }
21  std::string getJsonConfig() { return m_json_config; }
22  std::string getJsonPacketInfo();
23  std::shared_ptr<eudaq::AidaPacket> GetPacket() const { return m_packet; };
24 
25  private:
26  std::string m_filename;
27  unsigned long long m_runNumber;
28  FileDeserializer *m_des;
29  std::string m_json_config;
30  std::shared_ptr<eudaq::AidaPacket> m_packet;
31  };
32 }
33 
34 #endif // EUDAQ_INCLUDED_AidaFileReader
Definition: AidaFileReader.hh:13
Definition: FileSerializer.hh:25
Definition: AidaPacket.hh:39