Inheritance diagram for QFileWriter:
Inheriting classes must implement Open(), Dump() and Close() methods, the filename, filelists etc... is completely handled by methods of this class. Inheriting classes can check for SaveAuxData() if they want to imlement this feature. The following options can be specified in QFileWriter's config files:
SyncWithReader = true PartialSize = 0 OutputDir = . OutputFilePrefix = QRFWriter_DEFAULT WriteFilesList = true OutputFilesList = QRFWriter_DEFAULT.list SaveAuxData = true SaveTempFiles = false SetListForReader = true
Public Member Functions | |
QFileWriter (const std::string &name, const std::string &extension, QSequence *s) | |
Mandatory constructor. | |
virtual | ~QFileWriter () |
destructor | |
void | Init () |
Begin method called by the framework. | |
QEvent * | Do (QEvent *ev) |
Process method called by the framework. | |
void | Done () |
End method called by the framework. | |
virtual void | Open (const std::string &filename)=0 |
Open File. | |
virtual void | Dump (const QEvent &ev)=0 |
Dump ev to file. | |
virtual void | Close ()=0 |
Close file. | |
Static Public Member Functions | |
static const std::list< std::string > & | GetFileList () |
list of output files | |
Protected Member Functions | |
bool | SaveAuxData () const |
method for inheriting classes to check for AuxData dump | |
Protected Attributes | |
int | fEventNumber |
current event number | |
std::string | fFileExtension |
file extension | |
Private Member Functions | |
bool | IsToOpen (const QRunData &runData) |
Private Attributes | |
std::list< std::string > | fFilesList |
std::list< std::string > | fOldFilesList |
std::string | fFileNamePrefix |
filename components | |
std::string | fFileId |
std::string | fFileName |
fFileName = fFileNamePrefix + fFileId | |
std::string | fOutputDir |
std::string | fFileFullPath |
fFileFullPath = fOutputDir + "/" + fFileName + fFileExtension | |
std::string | fFilesListName |
bool | fSaveAuxData |
bool | fSetListForReader |
std::string | fOldFilesListName |
std::string | fCurrFilesListName |
bool | fWriteFilesList |
bool | fSaveTempFiles |
int | fPartialSize |
bool | fSyncWithReader |
int | fPartial |
int | fCurrentRun |
bool | fNewPartialOnRerun |
Static Private Attributes | |
static std::list< std::string > | fFullPathFilesList |