#include <IOfileVI.h>
Inheritance diagram for IOfileVI:
Public Methods | |
IOfileVI () | |
default constructor. | |
virtual | ~IOfileVI () |
default destructor. | |
virtual void | setFileName (std::string name) |
set the name of the file. | |
virtual void | setMode (IOBase::MODE m) |
set the mode. | |
virtual void | setNumEvents (int nevt) |
set total number of events. | |
virtual void | setOpen (bool t) |
set the file to Open. | |
virtual void | increase () |
virtual method to increase one event. | |
virtual void | open () = 0 |
virtual method to open the file. | |
virtual void | close () = 0 |
virtual method to close the file. | |
virtual bool | nextEvent () |
virtual method to know if there is one event more in the file. | |
virtual void | readEvent () |
virtual method to read the next event - overwrite by the derived class. | |
virtual void | writeEvent () |
virtual method to write an event - overwrite by the derived class. | |
virtual void | skipEvent () |
virtual method to skip next event - overwrite by the derived class. | |
virtual std::string | getFileName () const |
returns the name of the file. | |
IOBase::MODE | getMode () const |
returns the mode READ or WRITE. | |
virtual int | eventNumber () const |
virtual method to return the current Event. | |
virtual int | numEvents () const |
virtual method ro return the total number of events;. | |
virtual bool | isOpen () const |
virtual method to know if the file is open or not. | |
Protected Methods | |
virtual void | clear () |
clear all the variables. | |
Private Attributes | |
std::string | m_nameFile |
name of the file. | |
IOBase::MODE | m_mode |
mode of open the file READ or WRITE. | |
bool | m_open |
is the file open? | |
int | m_numEvents |
number of total events in the file. | |
int | m_currentEvent |
the current event number. |
open()
, close()
of files. It knows if the file are type MODE READ or WRITE (see enumeration in IOBase). readEvent()
, writeEvent()
and skipEvent()
processes numEvents())
, and number of event read or writen (eventNumber())
.
Definition at line 24 of file IOfileVI.h.
|
|
|
clear all the variables.
Reimplemented in rTFileBase, and rTreeBase.
Definition at line 5 of file IOfileVI.cpp.
|
|
|
|
|
|
|
virtual method to know if there is one event more in the file.
Reimplemented in IOfileServer.
Definition at line 51 of file IOfileVI.h.
|
|
virtual method to open the file.
Reimplemented in IOfileNull, IOfileServer, rHistoFileServer, rTFileBase, and rTreeBase.
|
virtual method to read the next event - overwrite by the derived class.
Reimplemented in IOfileServer, and rTreeBase.
Definition at line 53 of file IOfileVI.h.
|
|
|
|
|
virtual method to skip next event - overwrite by the derived class.
Reimplemented in IOfileServer, and rTreeBase.
Definition at line 57 of file IOfileVI.h.
|
virtual method to write an event - overwrite by the derived class.
Reimplemented in IOfileServer, and rTreeBase.
Definition at line 55 of file IOfileVI.h.
|
|
|
|
|