2 #ifndef HEPMC_IO_BASECLASS_H
3 #define HEPMC_IO_BASECLASS_H
22 #include "HepMC/GenEvent.h"
43 virtual void print( std::ostream& ostr = std::cout )
const;
91 ostr <<
"IO_BaseClass: abstract parent I/O class. " << std::endl;
112 #endif // HEPMC_IO_BASECLASS_H
virtual GenEvent *& operator>>(GenEvent *&)
the same as read_next_event
virtual void write_event(const GenEvent *)=0
write this GenEvent
GenEvent * read_next_event()
do not over-ride
The GenEvent class is the core of HepMC.
all input/output classes inherit from IO_BaseClass
virtual bool fill_next_event(GenEvent *)=0
fill this GenEvent
virtual const GenEvent *& operator<<(const GenEvent *&)
the same as write_event
virtual void print(std::ostream &ostr=std::cout) const
write output to ostr