8 #define IO_LCWRITER_H 1
12 #include "EVENT/LCEvent.h"
13 #include "EVENT/LCRunHeader.h"
14 #include "Exceptions.h"
38 virtual void open(
const std::string & filename)
throw (
IOException, std::exception ) = 0;
46 virtual void open(
const std::string & filename,
int writeMode)
throw (
IOException, std::exception ) = 0;
88 virtual
void flush() throw (IOException, std::exception ) = 0;
virtual void setCompressionLevel(int level)=0
Set the compression level - needs to be called before open() otherwise call will have no effect...
virtual ~LCWriter()
Destructor.
Definition: LCWriter.h:31
virtual void close()=0
Closes the output file/stream.
virtual void writeEvent(const EVENT::LCEvent *evt)=0
Writes the given event to file.
virtual void open(const std::string &filename)=0
Opens a file for writing.
virtual void flush()=0
Flushes the output file/stream.
IOException used for reading/writing errors.
Definition: Exceptions.h:92
The main event interface.
Definition: LCEvent.h:30
Interface for writing data with LCIO.
Definition: LCWriter.h:27
virtual void writeRunHeader(const EVENT::LCRunHeader *hdr)=0
Writes the given run header to file.