Interface for writing data with LCIO. More...
#include <pre-generated/IO/LCWriter.h>
Public Member Functions | |
virtual | ~LCWriter () |
Destructor. | |
virtual void | open (const std::string &filename)=0 throw (IOException, std::exception ) |
Opens a file for writing. More... | |
virtual void | open (const std::string &filename, int writeMode)=0 throw (IOException, std::exception ) |
Opens a file for writing. More... | |
virtual void | setCompressionLevel (int level)=0 |
Set the compression level - needs to be called before open() otherwise call will have no effect. More... | |
virtual void | writeRunHeader (const EVENT::LCRunHeader *hdr)=0 throw (IOException, std::exception ) |
Writes the given run header to file. More... | |
virtual void | writeEvent (const EVENT::LCEvent *evt)=0 throw (IOException, std::exception ) |
Writes the given event to file. More... | |
virtual void | close ()=0 throw (IOException, std::exception ) |
Closes the output file/stream. More... | |
virtual void | flush ()=0 throw (IOException, std::exception ) |
Flushes the output file/stream. More... | |
Interface for writing data with LCIO.
Uses interfaces from EVENT/hep.lcio.event. Use LCFactory to instantiate a corresponding LCWriter object for the output format at hand (SIO only, so far).
|
pure virtual |
Closes the output file/stream.
IOException |
Implemented in SIO::SIOWriter, and UTIL::LCSplitWriter.
|
pure virtual |
Flushes the output file/stream.
IOException |
Implemented in SIO::SIOWriter, and UTIL::LCSplitWriter.
|
pure virtual |
Opens a file for writing.
If file with given name exists, an exception is thrown. Use append or new mode instead.
IOException |
Implemented in SIO::SIOWriter, and UTIL::LCSplitWriter.
|
pure virtual |
Opens a file for writing.
Possible write modes are: LCIO::WRITE_NEW (existing files are replaced) and LCIO::WRITE_APPEND.
IOException |
Implemented in SIO::SIOWriter, and UTIL::LCSplitWriter.
|
pure virtual |
Set the compression level - needs to be called before open() otherwise call will have no effect.
If not called the Writer will use default compression.
Valid compression levels are:
Status: (v01-09)
C++: experimental code - don't use for production
Java: not implemented
level | compression level |
Implemented in SIO::SIOWriter, and UTIL::LCSplitWriter.
Referenced by UTIL::LCSplitWriter::setCompressionLevel().
|
pure virtual |
Writes the given event to file.
IOException |
Implemented in SIO::SIOWriter, and UTIL::LCSplitWriter.
|
pure virtual |
Writes the given run header to file.
IOException |
Implemented in SIO::SIOWriter, and UTIL::LCSplitWriter.