6 #ifndef HEPMC3_WRITERPLUGIN_H
7 #define HEPMC3_WRITERPLUGIN_H
28 WriterPlugin(std::ostream & stream,
const std::string &libname,
const std::string &newwriter, std::shared_ptr<HepMC3::GenRunInfo>run=std::shared_ptr<GenRunInfo>());
32 WriterPlugin(
const std::string& filename,
const std::string &libname,
const std::string &newwriter, std::shared_ptr<HepMC3::GenRunInfo>run=std::shared_ptr<GenRunInfo>());
virtual void write_event(const GenEvent &evt)=0
Write event evt to output target.
GenEvent I/O parsing and serialization using external plugin.
virtual void close()=0
Close file and/or stream.
void write_event(const GenEvent &ev) override
Reading event.
virtual bool failed()=0
Get file and/or stream error state.
Writer * m_writer
The actual writer.
Stores event-related information.
void close() override
Close.
Definition of interface Writer.
bool failed() override
State.
void * dll_handle
library handler
Base class for all I/O writers.
Definition of class GenEvent.
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() override
Destructor.