LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
LCWriter.h
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef IO_LCWRITER_H
8 #define IO_LCWRITER_H 1
9 
10 #include <string>
11 
12 #include "EVENT/LCEvent.h"
13 #include "EVENT/LCRunHeader.h"
14 #include "Exceptions.h"
15 
16 namespace IO {
17 
27 class LCWriter {
28 
29 public:
31  virtual ~LCWriter() { /* nop */; }
32 
38  virtual void open(const std::string & filename) throw (IOException, std::exception ) = 0;
39 
46  virtual void open(const std::string & filename, int writeMode) throw (IOException, std::exception ) = 0;
47 
64  virtual void setCompressionLevel(int level) = 0;
65 
70  virtual void writeRunHeader(const EVENT::LCRunHeader * hdr) throw (IOException, std::exception ) = 0;
71 
76  virtual void writeEvent(const EVENT::LCEvent * evt) throw (IOException, std::exception ) = 0;
77 
82  virtual void close() throw (IOException, std::exception ) = 0;
83 
88  virtual void flush() throw (IOException, std::exception ) = 0;
89 }; // class
90 } // namespace IO
91 #endif /* ifndef IO_LCWRITER_H */
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
Interface for the run header.
Definition: LCRunHeader.h:23
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.