| HepMC3 event record library
    | 
GenEvent I/O serialization for compressed files.
Definition at line 25 of file WriterGZ.h.
#include <WriterGZ.h>
 Inheritance diagram for WriterGZ< T, C >:
 Inheritance diagram for WriterGZ< T, C >: Collaboration diagram for WriterGZ< T, C >:
 Collaboration diagram for WriterGZ< T, C >:| Public Member Functions | |
| WriterGZ (const std::string &filename, std::shared_ptr< GenRunInfo > run=std::shared_ptr< GenRunInfo >()) | |
| Constructor. | |
| WriterGZ (std::ostream &stream, std::shared_ptr< GenRunInfo > run=std::shared_ptr< GenRunInfo >()) | |
| Constructor from ostream. | |
| ~WriterGZ () | |
| Destructor. | |
| void | write_event (const GenEvent &evt) override | 
| Write event to file. | |
| bool | failed () override | 
| Return status of the stream. | |
| void | close () override | 
| Close file stream. | |
| virtual void | set_run_info (std::shared_ptr< GenRunInfo > run) | 
| Set the global GenRunInfo object. | |
| virtual std::shared_ptr< GenRunInfo > | run_info () const | 
| Get the global GenRunInfo object. | |
| virtual void | set_options (const std::map< std::string, std::string > &options) | 
| Set options. | |
| virtual std::map< std::string, std::string > | get_options () const | 
| Set options. | |
| Protected Attributes | |
| std::map< std::string, std::string > | m_options | 
| options | |
| Private Attributes | |
| std::shared_ptr< std::ostream > | m_zstr | 
| Stream to write. | |
| std::shared_ptr< Writer > | m_writer | 
| actual writter | |
| std::shared_ptr< GenRunInfo > | m_run_info | 
| The global GenRunInfo object. | |
| 
 | inline | 
Constructor.
Definition at line 30 of file WriterGZ.h.
| 
 | inline | 
Constructor from ostream.
Definition at line 36 of file WriterGZ.h.
| 
 | inline | 
Destructor.
Definition at line 42 of file WriterGZ.h.
| 
 | inlineoverridevirtual | 
| 
 | inlineoverridevirtual | 
Return status of the stream.
Implements Writer.
Definition at line 50 of file WriterGZ.h.
References m_writer.
| 
 | inlinevirtualinherited | 
Set options.
Reimplemented in WriterPlugin.
Definition at line 54 of file Writer.h.
References m_options.
| 
 | inlinevirtualinherited | 
Get the global GenRunInfo object.
Reimplemented in WriterPlugin.
Definition at line 45 of file Writer.h.
References m_run_info.
| 
 | inlinevirtualinherited | 
Set options.
Reimplemented in WriterPlugin.
Definition at line 52 of file Writer.h.
References m_options.
| 
 | inlinevirtualinherited | 
Set the global GenRunInfo object.
Reimplemented in WriterPlugin.
Definition at line 42 of file Writer.h.
References m_run_info.
| 
 | inlineoverridevirtual | 
Write event to file.
| [in] | evt | Event to be serialized | 
Implements Writer.
Definition at line 47 of file WriterGZ.h.
References m_writer.
| 
 | protectedinherited | 
| 
 | privateinherited | 
The global GenRunInfo object.
| 
 | private | 
actual writter
Definition at line 61 of file WriterGZ.h.
| 
 | private | 
Stream to write.
Definition at line 60 of file WriterGZ.h.