IoAugerEventFile.h
Go to the documentation of this file.
1 #ifndef _io_IoAugerEventFile_h_
2 #define _io_IoAugerEventFile_h_
3 
4 #include <io/VEventFile.h>
5 #include <AugerFile.h>
6 
7 
8 namespace io {
9 
20  class IoAugerEventFile : public VEventFile {
21 
22  public:
24  IoAugerEventFile(const std::string& filename, const Mode mode = eRead, utl::Branch* const b = nullptr);
25  virtual ~IoAugerEventFile();
26 
27  void Open(const std::string& filename, const Mode mode = eRead, utl::Branch* const b = nullptr) override;
28  void Close() override;
29  Status Read(evt::Event& event) override;
30  void Write(const evt::Event& event) override;
31  Status FindEvent(const unsigned int n) override;
32  Status GotoPosition(const unsigned int n) override;
33  int GetNEvents() override;
34 
35  private:
38 
40  AugerFile* fAugerFile = nullptr;
41 
42  };
43 
44 }
45 
46 
47 #endif
AugerFile::Mode ConvertMode(const Mode m)
IoAugerEventFile & operator=(const IoAugerEventFile &)
void Write(const evt::Event &event) override
Mode
Available open modes.
Definition: IoCodes.h:16
void Open(const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr) override
int GetNEvents() override
Class representing a document branch.
Definition: Branch.h:107
Status
Return code for seek operation.
Definition: IoCodes.h:24
Status FindEvent(const unsigned int n) override
seek Event id set cursor there
Status GotoPosition(const unsigned int n) override
goto by position in the file
char * filename
Definition: dump1090.h:266
constexpr double m
Definition: AugerUnits.h:121
Status Read(evt::Event &event) override
read current event advance cursor by 1

, generated on Tue Sep 26 2023.