RadioFileAERA.h
Go to the documentation of this file.
1 #ifndef _io_RadioFileAERA_h_
2 #define _io_RadioFileAERA_h_
3 
4 #include <TFile.h>
5 #include <io/VROOTFile.h>
6 
7 
8 namespace io {
9 
17  class RadioFileAERA : public VEventFile {
18 
19  public:
21  RadioFileAERA(const std::string& filename, const Mode mode = eRead, utl::Branch* const b = nullptr);
22  virtual ~RadioFileAERA() { }
23 
24  void Open(const std::string& filename, const Mode mode = eRead, utl::Branch* const b = nullptr) override;
25  void Close() override;
26  Status Read(evt::Event& event) override;
27  void Write(const evt::Event& event) override;
28  Status FindEvent(const unsigned int eventId) override;
29  Status GotoPosition(const unsigned int position) override;
30  int GetNEvents() override;
31 
33 
34  private:
35  int fCurrentEvent = -1;
36  bool fHasFileOpen = false;
37  bool fIsFirstevent = true;
38 
39  };
40 
41 }
42 
43 
44 #endif
Status FindEvent(const unsigned int eventId) override
seek Event id set cursor there
void Write(const evt::Event &event) override
Status Read(evt::Event &event) override
read current event advance cursor by 1
Mode
Available open modes.
Definition: IoCodes.h:16
Class representing a document branch.
Definition: Branch.h:107
Status
Return code for seek operation.
Definition: IoCodes.h:24
Status GotoPosition(const unsigned int position) override
goto by position in the file
virtual ~RadioFileAERA()
Definition: RadioFileAERA.h:22
void Close() override
int GetNEvents() override
char * filename
Definition: dump1090.h:266
void Open(const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr) override

, generated on Tue Sep 26 2023.