1 #ifndef SIO_SIOWRITER_H 
    2 #define SIO_SIOWRITER_H 1 
   16 #include "sio/definitions.h" 
   17 #include "sio/buffer.h" 
   18 #include <sio/compression/zlib.h> 
   88     virtual void close()  ;
 
   94     virtual void flush()  ;
 
SIOWriter & operator=(const SIOWriter &)=delete
no assignment operator 
 
void getSIOFileName(const std::string &filename, std::string &sioFilename)
Creates a proper filename with extension 'slcio' in sioFilename. 
 
Manager class for LCIO direct access. 
 
SIOHandlerMgr _eventHandlerMgr
The collection block handler manager for events. 
 
SIOWriter()=default
Default constructor. 
 
virtual void close()
Closes the output file/stream etc. 
 
Concrete implementation of LCWriter using SIO. 
 
sio::ofstream _stream
The output file stream. 
 
sio::buffer _rawBuffer
The raw buffer for writing bytes to the stream. 
 
sio::buffer _compBuffer
The raw buffer for compression. 
 
virtual void flush()
Flushes the output file/stream etc. 
 
virtual void writeRunHeader(const EVENT::LCRunHeader *hdr)
Writes the given run header to file. 
 
~SIOWriter()=default
Destructor. 
 
virtual void setCompressionLevel(int level)
Set the compression level - needs to be called before open() otherwise call will have no effect...
 
sio::zlib_compression _compressor
The compression in use. 
 
The main event interface. 
 
Holds instances of all types of SIOObjectHandlers. 
 
pair< int, string > level
 
Interface for writing data with LCIO. 
 
virtual void writeEvent(const EVENT::LCEvent *evt)
Writes the given event to file. 
 
virtual void open(const std::string &filename)
Opens a file for writing. 
 
LCIORandomAccessMgr _raMgr
The random access manager.