CDASEventFile.h
Go to the documentation of this file.
1 #ifndef _io_CDASEventFile_h_
2 #define _io_CDASEventFile_h_
3 
4 #include <io/VROOTFile.h>
5 
6 
7 namespace io {
8 
19  class CDASEventFile : public VROOTFile {
20 
21  public:
22  CDASEventFile() = default;
23 
24  CDASEventFile(const std::string& filename, const Mode mode = eRead, utl::Branch* const b = nullptr)
25  { Open(filename, mode, b); }
26 
27  virtual ~CDASEventFile() = default;
28 
29  void Open(const std::string& filename, const Mode mode = eRead, utl::Branch* const b = nullptr) override;
30 
31  void Close() override;
32 
33  Status Read(evt::Event& event) override;
34 
35  void Write(const evt::Event& event) override;
36 
37  Status FindEvent(const unsigned int eventId) override;
38 
39  Status GotoPosition(const unsigned int position) override;
40 
41  int GetNEvents() override;
42 
43  private:
44  int fCurrentEvent = -1;
45 
46  };
47 
48 }
49 
50 
51 #endif
virtual ~CDASEventFile()=default
Mode
Available open modes.
Definition: IoCodes.h:16
void Close() override
Status FindEvent(const unsigned int eventId) override
seek Event id set cursor there
int GetNEvents() override
void Open(const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr) override
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
void Write(const evt::Event &event) override
CDASEventFile(const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr)
Definition: CDASEventFile.h:24
Interface for CDAS file reading.
Definition: CDASEventFile.h:19
Status Read(evt::Event &event) override
read current event advance cursor by 1
CDASEventFile()=default
char * filename
Definition: dump1090.h:266

, generated on Tue Sep 26 2023.