1 #ifndef _io_VEventFile_h_
2 #define _io_VEventFile_h_
4 #include <utl/AugerException.h>
5 #include <io/IoCodes.h>
39 virtual void Close() = 0;
virtual void Write(const evt::Event &event)=0
const std::string & GetFilename() const
virtual int GetNEvents()=0
virtual Status FindEvent(const unsigned int eventId)=0
seek Event id set cursor there
Mode
Available open modes.
virtual Status GotoPosition(const unsigned int position)=0
goto by position in the file
virtual Status Read(evt::Event &event)=0
read current event advance cursor by 1
virtual void Open(const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr)=0
int DefaultOpen(const std::string &filename, const Mode mode=eRead)
Class representing a document branch.
Status
Return code for seek operation.
VEventFile(const std::string &filename, const Mode mode, utl::Branch *const b=nullptr)
VEventFile & operator=(const VEventFile &event)
Assignment operator - not implemented.
int DefaultWrite(evt::Event &event)