FDasEventFile.h
Go to the documentation of this file.
1 #ifndef _io_FDasEventFile_h_
2 #define _io_FDasEventFile_h_
3 
4 #include <io/VEventFile.h>
5 
6 #include <map>
7 
8 
9 class TEyeEventFile;
10 class TEyeEvent;
11 
12 namespace io {
13 
24  class FDasEventFile : public VEventFile {
25 
26  public:
28  FDasEventFile(const std::string& filename, const Mode mode, utl::Branch* const b);
29  virtual ~FDasEventFile();
30 
31  void Open(const std::string& filename, const Mode mode, utl::Branch* const b) override;
32 
33  void Close() override;
34 
35  void Write(const evt::Event& event) override;
36 
38  Status Read(evt::Event& event) override;
39 
41  Status FindEvent(const unsigned int eventid) override;
42 
44  Status GotoPosition(const unsigned int position) override;
45 
46  int GetNEvents() override;
47 
48  private:
49  std::map<unsigned int, TEyeEventFile*> fEyeEventFile;
50  TEyeEvent* fCurEyeEvent = nullptr;
51 
52  };
53 
54 }
55 
56 
57 #endif
Status Read(evt::Event &event) override
clear /par event read current event advance cursor by 1
void Open(const std::string &filename, const Mode mode, utl::Branch *const b) override
std::map< unsigned int, TEyeEventFile * > fEyeEventFile
Definition: FDasEventFile.h:49
virtual ~FDasEventFile()
Mode
Available open modes.
Definition: IoCodes.h:16
void Close() override
Class representing a document branch.
Definition: Branch.h:107
int GetNEvents() override
Status
Return code for seek operation.
Definition: IoCodes.h:24
void Write(const evt::Event &event) override
Status FindEvent(const unsigned int eventid) override
seek Event id set cursor there
char * filename
Definition: dump1090.h:266
Interface for FDAS file reading.
Definition: FDasEventFile.h:24
Status GotoPosition(const unsigned int position) override
goto by position in the file
TEyeEvent * fCurEyeEvent
Definition: FDasEventFile.h:50

, generated on Tue Sep 26 2023.