#include <SIOWriter.h>
Inheritance diagram for SIO::SIOWriter:

Public Member Functions | |
| SIOWriter () | |
| virtual | ~SIOWriter () |
| virtual void | open (const std::string &filename) throw (IO::IOException, std::exception) |
| virtual void | open (const std::string &filename, int writeMode) throw (IO::IOException, std::exception) |
| virtual void | writeRunHeader (const EVENT::LCRunHeader *hdr) throw (IO::IOException, std::exception) |
| virtual void | writeEvent (const EVENT::LCEvent *evt) throw (IO::IOException, std::exception) |
| virtual void | close () throw (IO::IOException, std::exception) |
| virtual void | flush () throw (IO::IOException, std::exception) |
Protected Member Functions | |
| void | setUpHandlers (const EVENT::LCEvent *evt) |
| void | getSIOFileName (const std::string &filename, std::string &sioFilename) |
Protected Attributes | |
| SIO_stream * | _stream |
Static Protected Attributes | |
| SIO_record * | _evtRecord |
| SIO_record * | _hdrRecord |
| SIO_record * | _runRecord |
Private Attributes | |
| SIOEventHandler * | _hdrHandler |
| SIORunHeaderHandler * | _runHandler |
| std::vector< SIO_block * > | _connectedBlocks |
Friends | |
| class | SIOReader |
| class | SIOUnpack |
Definition at line 32 of file SIOWriter.h.
|
|
Default constructor. Definition at line 38 of file SIOWriter.cc. References _hdrHandler, _runHandler, SIO_blockManager::setVerbosity(), SIO_recordManager::setVerbosity(), SIO_streamManager::setVerbosity(), SIO_ALL, and SIO_SILENT. |
|
|
Destructor Definition at line 63 of file SIOWriter.cc. References SIO_blockManager::clear(). |
|
|
Closes the output file/stream etc.
Implements IO::LCWriter. Definition at line 338 of file SIOWriter.cc. References _stream, SIO_stream::getName(), and SIO_streamManager::remove(). |
|
|
Flushes the output file/stream etc.
Implements IO::LCWriter. Definition at line 350 of file SIOWriter.cc. References _stream, SIO_stream::flush(), and SIO_stream::getName(). |
|
||||||||||||
|
Creates a proper filename with extension 'slcio' in sioFilename. Definition at line 101 of file SIOWriter.cc. |
|
||||||||||||
|
Opens a file for writing. Possible write modes are: LCIO::WRITE_NEW (existing files are replaced) and LCIO::WRITE_APPEND.
Implements IO::LCWriter. Definition at line 118 of file SIOWriter.cc. References SIO_recordManager::add(), SIO_streamManager::add(), SIO_recordManager::get(), SIO_stream::open(), and SIO_record::setCompress(). |
|
|
Opens a file for writing. If file with given name exists, an exception is thrown. Use append or new mode instead.
Implements IO::LCWriter. Definition at line 82 of file SIOWriter.cc. |
|
|
Sets up the handlers for writing the current event. Definition at line 210 of file SIOWriter.cc. References _evtRecord, _hdrHandler, _hdrRecord, SIO_record::connect(), SIO_record::disconnect(), SIO_record::disconnectAll(), SIO_blockManager::get(), EVENT::LCEvent::getCollection(), EVENT::LCEvent::getCollectionNames(), EVENT::LCCollection::getTypeName(), EVENT::LCCollection::isTransient(), and SIO::SIOCollectionHandler::setCollection(). |
|
|
Writes the given event to file.
Implements IO::LCWriter. Definition at line 298 of file SIOWriter.cc. References SIO::SIOCollectionHandler::setEvent(). |
|
|
Writes the given run header to file.
Implements IO::LCWriter. Definition at line 170 of file SIOWriter.cc. References SIO_record::connect(), SIO_record::disconnect(), and SIO_record::write(). |
|
|
Definition at line 35 of file SIOWriter.h. |
|
|
Definition at line 36 of file SIOWriter.h. |
|
|
Definition at line 110 of file SIOWriter.h. |
|
|
Definition at line 33 of file SIOWriter.cc. Referenced by setUpHandlers(). |
|
|
Definition at line 108 of file SIOWriter.h. Referenced by setUpHandlers(), and SIOWriter(). |
|
|
Definition at line 34 of file SIOWriter.cc. Referenced by setUpHandlers(). |
|
|
Definition at line 109 of file SIOWriter.h. Referenced by SIOWriter(). |
|
|
Definition at line 35 of file SIOWriter.cc. |
|
|
Definition at line 104 of file SIOWriter.h. |
1.3.9.1