| HepMC3 event record library
    | 
GenEvent I/O parsing and serialization using external plugin.
Definition at line 23 of file WriterPlugin.h.
#include <WriterPlugin.h>
 Inheritance diagram for WriterPlugin:
 Inheritance diagram for WriterPlugin: Collaboration diagram for WriterPlugin:
 Collaboration diagram for WriterPlugin:| Public Member Functions | |
| WriterPlugin (std::ostream &stream, const std::string &libname, const std::string &newwriter, std::shared_ptr< HepMC3::GenRunInfo > run=std::shared_ptr< GenRunInfo >()) | |
| Constructor to read from stream. | |
| WriterPlugin (const std::string &filename, const std::string &libname, const std::string &newwriter, std::shared_ptr< HepMC3::GenRunInfo > run=std::shared_ptr< GenRunInfo >()) | |
| Constructor to read from file. | |
| void | write_event (const GenEvent &ev) override | 
| Reading event. | |
| void | close () override | 
| Close. | |
| bool | failed () override | 
| State. | |
| std::shared_ptr< GenRunInfo > | run_info () const override | 
| Get the global GenRunInfo object. | |
| void | set_options (const std::map< std::string, std::string > &options) override | 
| Set options. | |
| std::map< std::string, std::string > | get_options () const override | 
| Get options. | |
| void | set_run_info (std::shared_ptr< GenRunInfo > run) override | 
| Set the global GenRunInfo object. | |
| ~WriterPlugin () override | |
| Destructor. | |
| Protected Attributes | |
| std::map< std::string, std::string > | m_options | 
| options | |
| Private Attributes | |
| Writer * | m_writer = nullptr | 
| The actual writer. | |
| void * | dll_handle = nullptr | 
| library handler | |
| std::shared_ptr< GenRunInfo > | m_run_info | 
| The global GenRunInfo object. | |
| WriterPlugin | ( | std::ostream & | stream, | 
| const std::string & | libname, | ||
| const std::string & | newwriter, | ||
| std::shared_ptr< HepMC3::GenRunInfo > | run = std::shared_ptr<GenRunInfo>() ) | 
Constructor to read from stream.
Definition at line 30 of file WriterPlugin.cc.
References dll_handle, m_writer, and Writer::Writer().
| WriterPlugin | ( | const std::string & | filename, | 
| const std::string & | libname, | ||
| const std::string & | newwriter, | ||
| std::shared_ptr< HepMC3::GenRunInfo > | run = std::shared_ptr<GenRunInfo>() ) | 
Constructor to read from file.
Definition at line 50 of file WriterPlugin.cc.
References dll_handle, m_writer, and Writer::Writer().
| 
 | override | 
| 
 | inlineoverridevirtual | 
| 
 | inlineoverridevirtual | 
| 
 | inlineoverridevirtual | 
Get options.
Reimplemented from Writer.
Definition at line 44 of file WriterPlugin.h.
References m_writer.
| 
 | inlineoverridevirtual | 
Get the global GenRunInfo object.
Reimplemented from Writer.
Definition at line 40 of file WriterPlugin.h.
References m_writer.
| 
 | inlineoverridevirtual | 
Set options.
Reimplemented from Writer.
Definition at line 42 of file WriterPlugin.h.
References m_writer.
| 
 | inlineoverridevirtual | 
Set the global GenRunInfo object.
Reimplemented from Writer.
Definition at line 46 of file WriterPlugin.h.
References m_writer.
| 
 | inlineoverridevirtual | 
Reading event.
Implements Writer.
Definition at line 34 of file WriterPlugin.h.
References m_writer.
| 
 | private | 
library handler
Definition at line 51 of file WriterPlugin.h.
| 
 | protectedinherited | 
| 
 | privateinherited | 
The global GenRunInfo object.
| 
 | private | 
The actual writer.
Definition at line 50 of file WriterPlugin.h.