56 void set_options(
const std::map<std::string, std::string>& options)
Definition of class GenRunInfo.
Stores event-related information.
Base class for all I/O writers.
void set_options(const std::map< std::string, std::string > &options)
Set options.
std::shared_ptr< GenRunInfo > run_info() const
Get the global GenRunInfo object.
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 & operator=(const Writer &)=delete
deleted copy assignment operator
std::map< std::string, std::string > get_options() const
Set options.
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.