6 #ifndef HEPMC_IO_GENEVENT_H 7 #define HEPMC_IO_GENEVENT_H 17 #include "HepMC/WriterAscii.h" 18 #include "HepMC/ReaderAscii.h" 19 #include "HepMC/Common.h" 32 IO_GenEvent(
const string &filename, std::ios::openmode mode = std::ios::out)
void write_event(const GenEvent &evt)
Write event to file.
bool failed()
Return status of the stream.
ReaderAscii * m_reader
Instance of ReaderAscii.
IO_GenEvent(const string &filename, std::ios::openmode mode=std::ios::out)
Filename constructor allowing both ios::in and ios::out modes.
bool read_event(GenEvent &evt)
Load event from file.
bool failed()
Return status of the stream.
Stores event-related information.
GenEvent I/O serialization for structured text files.
bool fill_next_event(GenEvent *evt)
Wrapper for ReaderAscii::read_event.
WriterAscii * m_writer
Instance of WriterAscii.
int rdstate() const
Wrapper for Writer/Reader rdstate()
IO_GenEvent(std::ostream &stream)
Ostream constructor.
void write_event(const GenEvent *evt)
Wrapper for WriterAscii::write_event.
Definition of template class SmartPointer.
GenEvent I/O parsing for structured text files.
~IO_GenEvent()
Default destructor.
IO_GenEvent(std::istream &stream)
Istream constructor.