Public Member Functions | |
QFileReader (const std::string &name, QSequence *s) | |
Mandatory constructor. | |
virtual | ~QFileReader () |
destructor | |
virtual const QError & | JumpToEvent (unsigned int event) |
Jump to event. | |
void | Init () |
Cuore::QEvent * | Do (Cuore::QEvent *ev) |
void | Done () |
Done method is called after event loop. | |
unsigned int | GetReadNumber () const |
Get read number (entry number in file being read, starting from 0). | |
Protected Member Functions | |
virtual void | Open (const std::string &fileName)=0 |
Open File. | |
virtual Cuore::QEvent * | Fill (Cuore::QEvent *ev)=0 |
Fill event, return NULL when file has no more events. | |
virtual void | Close ()=0 |
Protected Attributes | |
int | fFileNumber |
current file number read | |
std::list< std::string > | fFileList |
list of files | |
unsigned int | fFileEventNumber |
last event read | |
bool | fReadFileList |
read file list | |
std::string | fFileListPath |
file list path | |
Private Attributes | |
std::list< std::string > ::const_iterator | fFileListIter |
Friends | |
class | QSequence |
const QError & QFileReader::JumpToEvent | ( | unsigned int | event | ) | [virtual] |
Jump to event.
event |
Reimplemented from QReader.
References QReader::fErr, and QError::SetDescription().
void QFileReader::Init | ( | ) | [virtual] |
Init method is called before event loop
Implements QReader.
Reimplemented in MLiveTime.
References QBaseModule::Debug(), fFileEventNumber, fFileList, fFileListPath, fFileNumber, fReadFileList, QBaseModule::GetBool(), QBaseModule::GetIteration(), QBaseModule::GetString(), and QBaseModule::SeqAuxData().
Referenced by MLiveTime::Init().