1 #ifndef SIO_SIOWRITER_H
2 #define SIO_SIOWRITER_H 1
6 #include "IO/LCWriter.h"
7 #include "EVENT/LCEvent.h"
8 #include "EVENT/LCRunHeader.h"
10 #include "LCIORandomAccessMgr.h"
12 #include "SIO_block.h"
20 class SIOEventHandler ;
21 class SIORunHeaderHandler ;
22 class SIOCollectionHandler ;
38 friend class SIOUnpack ;
63 virtual void open(
const std::string & filename,
int writeMode)
throw (
IO::IOException, std::exception) ;
116 std::string& sioFilename) ;
120 SIO_stream *_stream ;
121 int _compressionLevel ;
127 std::vector<SIO_block*> _connectedBlocks ;
void getSIOFileName(const std::string &filename, std::string &sioFilename)
Creates a proper filename with extension 'slcio' in sioFilename.
Definition: SIOWriter.cc:99
Manager class for LCIO direct access.
Definition: LCIORandomAccessMgr.h:38
SIOWriter()
Default constructor.
Definition: SIOWriter.cc:38
virtual void close()
Closes the output file/stream etc.
Definition: SIOWriter.cc:319
Concrete implementation of LCWriter using SIO.
Definition: SIOWriter.h:34
virtual void flush()
Flushes the output file/stream etc.
Definition: SIOWriter.cc:337
virtual void writeRunHeader(const EVENT::LCRunHeader *hdr)
Writes the given run header to file.
Definition: SIOWriter.cc:187
virtual void setCompressionLevel(int level)
Set the compression level - needs to be called before open() otherwise call will have no effect...
Definition: SIOWriter.cc:182
virtual ~SIOWriter()
Destructor.
Definition: SIOWriter.cc:70
Handler for LCEvent/LCEventIOImpl objects.
Definition: SIOEventHandler.h:19
IOException used for reading/writing errors.
Definition: Exceptions.h:92
void setUpHandlers(const EVENT::LCEvent *evt)
Sets up the handlers for writing the current event.
Definition: SIOWriter.cc:225
Handler for LCRunHeader/LCRunHeaderImpl objects.
Definition: SIORunHeaderHandler.h:20
The main event interface.
Definition: LCEvent.h:30
Concrete implementation of LCWriter using SIO.
Definition: SIOReader.h:33
Interface for writing data with LCIO.
Definition: LCWriter.h:27
virtual void writeEvent(const EVENT::LCEvent *evt)
Writes the given event to file.
Definition: SIOWriter.cc:269
virtual void open(const std::string &filename)
Opens a file for writing.
Definition: SIOWriter.cc:80