List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
io::VEventFile Class Referenceabstract

#include <VEventFile.h>

Inheritance diagram for io::VEventFile:
Inheritance graph
[legend]

Public Member Functions

virtual void Close ()=0
 
virtual Status FindEvent (const unsigned int eventId)=0
 seek Event id set cursor there More...
 
const std::string & GetFilename () const
 
virtual int GetNEvents ()=0
 
virtual Status GotoPosition (const unsigned int position)=0
 goto by position in the file More...
 
virtual void Open (const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr)=0
 
virtual Status Read (evt::Event &event)=0
 read current event advance cursor by 1 More...
 
 VEventFile ()
 
 VEventFile (const std::string &filename, const Mode mode, utl::Branch *const b=nullptr)
 
virtual void Write (const evt::Event &event)=0
 
virtual ~VEventFile ()
 

Protected Member Functions

int DefaultOpen (const std::string &filename, const Mode mode=eRead)
 
int DefaultWrite (evt::Event &event)
 
VEventFileoperator= (const VEventFile &event)
 Assignment operator - not implemented. More...
 
 VEventFile (const VEventFile &event)
 Copy constructor - not implemented. More...
 

Protected Attributes

utl::BranchfBranch = nullptr
 
std::string fFilename
 
Mode fMode = eRead
 

Detailed Description

Base class for EventFile

Author
Stefano Argiro`
Date
1 April 2003

Definition at line 26 of file VEventFile.h.

Constructor & Destructor Documentation

io::VEventFile::VEventFile ( )
inline

Definition at line 29 of file VEventFile.h.

io::VEventFile::VEventFile ( const std::string &  filename,
const Mode  mode,
utl::Branch *const  b = nullptr 
)
inline

Definition at line 31 of file VEventFile.h.

References DefaultOpen().

virtual io::VEventFile::~VEventFile ( )
inlinevirtual

Definition at line 34 of file VEventFile.h.

io::VEventFile::VEventFile ( const VEventFile event)
protected

Copy constructor - not implemented.

Member Function Documentation

virtual void io::VEventFile::Close ( )
pure virtual
int VEventFile::DefaultOpen ( const std::string &  filename,
const Mode  mode = eRead 
)
protected

Checks that file exists Intended to be called in the Write method of derived classes

Definition at line 31 of file VEventFile.cc.

Referenced by io::VROOTFile::Open(), io::AiresShowerFile::Open(), VEventFile(), and io::VROOTFile::VROOTFile().

int VEventFile::DefaultWrite ( evt::Event event)
protected

Checks that we are open for write Intended to be called in the Write method of derived classes

Definition at line 15 of file VEventFile.cc.

References io::eRead, and FATAL.

virtual Status io::VEventFile::FindEvent ( const unsigned int  eventId)
pure virtual
const std::string& io::VEventFile::GetFilename ( ) const
inline

Definition at line 54 of file VEventFile.h.

References fFilename.

Referenced by io::EventFile::GetFilename().

virtual int io::VEventFile::GetNEvents ( )
pure virtual
virtual Status io::VEventFile::GotoPosition ( const unsigned int  position)
pure virtual
virtual void io::VEventFile::Open ( const std::string &  filename,
const Mode  mode = eRead,
utl::Branch *const  b = nullptr 
)
pure virtual
VEventFile& io::VEventFile::operator= ( const VEventFile event)
protected

Assignment operator - not implemented.

virtual Status io::VEventFile::Read ( evt::Event event)
pure virtual
virtual void io::VEventFile::Write ( const evt::Event event)
pure virtual

Member Data Documentation

utl::Branch* io::VEventFile::fBranch = nullptr
protected

Definition at line 72 of file VEventFile.h.

std::string io::VEventFile::fFilename
protected
Mode io::VEventFile::fMode = eRead
protected

The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.