HepMC3 event record library
|
GenEvent I/O serialization for compressed files.
Definition at line 25 of file WriterGZ.h.
#include <WriterGZ.h>
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. | |
void | set_run_info (std::shared_ptr< GenRunInfo > run) |
Set the global GenRunInfo object. | |
std::shared_ptr< GenRunInfo > | run_info () const |
Get the global GenRunInfo object. | |
void | set_options (const std::map< std::string, std::string > &options) |
Set options. | |
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.
References WriterGZ< T, C >::m_writer, and WriterGZ< T, C >::m_zstr.
|
inline |
Constructor from ostream.
Definition at line 36 of file WriterGZ.h.
References WriterGZ< T, C >::m_writer, and WriterGZ< T, C >::m_zstr.
|
inline |
Destructor.
Definition at line 42 of file WriterGZ.h.
|
inlineoverridevirtual |
Close file stream.
Implements Writer.
Definition at line 53 of file WriterGZ.h.
References WriterGZ< T, C >::m_writer, and WriterGZ< T, C >::m_zstr.
|
inlineoverridevirtual |
Return status of the stream.
Implements Writer.
Definition at line 50 of file WriterGZ.h.
References WriterGZ< T, C >::m_writer.
|
inlineinherited |
|
inlineinherited |
Get the global GenRunInfo object.
Definition at line 47 of file Writer.h.
References Writer::m_run_info.
|
inlineinherited |
|
inlineinherited |
Set the global GenRunInfo object.
Definition at line 42 of file Writer.h.
References Writer::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 WriterGZ< T, C >::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.