6 #ifndef HEPMC3_WRITER_H
7 #define HEPMC3_WRITER_H
Definition of class GenRunInfo.
Stores event-related information.
Base class for all I/O writers.
Writer & operator=(const Writer &)=delete
deleted copy assignment operator
void set_options(const std::map< std::string, std::string > &options)
Set options.
std::map< std::string, std::string > get_options() const
Set options.
virtual void write_event(const GenEvent &evt)=0
Write event evt to output target.
std::map< std::string, std::string > m_options
options
void set_run_info(std::shared_ptr< GenRunInfo > run)
Set the global GenRunInfo object.
Writer(const Writer &)=delete
deleted copy constructor
virtual bool failed()=0
Get file and/or stream error state.
virtual ~Writer()
Virtual destructor.
std::shared_ptr< GenRunInfo > m_run_info
The global GenRunInfo object.
virtual void close()=0
Close file and/or stream.
std::shared_ptr< GenRunInfo > run_info() const
Get the global GenRunInfo object.