EUDAQ
 All Classes Namespaces Files Functions Variables Pages
IndexReader.hh
1 #ifndef EUDAQ_INCLUDED_IndexReader
2 #define EUDAQ_INCLUDED_IndexReader
3 
4 #include <string>
5 #include "eudaq/Platform.hh"
6 
7 namespace eudaq {
8 
9  class FileDeserializer;
10  class AidaIndexData;
11 
12  class DLLEXPORT IndexReader {
13  public:
14  IndexReader(const std::string &filename);
15 
16  ~IndexReader();
17  std::string Filename() const { return m_filename; }
18  unsigned long long RunNumber() const { return m_runNumber; };
19  std::string getJsonConfig() { return m_json_config; };
20 
21  bool readNext();
22 
23  std::string data2json();
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  AidaIndexData *m_data;
31  };
32 }
33 
34 #endif // EUDAQ_INCLUDED_IndexReader
Definition: AidaIndexData.hh:14
Definition: IndexReader.hh:12
Definition: FileSerializer.hh:25