HepMC event record
Public Member Functions | Private Attributes
IO_GenEvent Class Reference

Detailed Description

Backward-compatibility wrapper for WriterAscii and ReaderAscii.

Definition at line 27 of file build/outputs/include/HepMC/IO_GenEvent.h.

#include <IO_GenEvent.h>

+ Collaboration diagram for IO_GenEvent:

Public Member Functions

 IO_GenEvent (const string &filename, std::ios::openmode mode=std::ios::out)
 Filename constructor allowing both ios::in and ios::out modes. More...
 
 IO_GenEvent (std::istream &stream)
 Istream constructor. More...
 
 IO_GenEvent (std::ostream &stream)
 Ostream constructor. More...
 
 ~IO_GenEvent ()
 Default destructor. More...
 
bool fill_next_event (GenEvent *evt)
 Wrapper for ReaderAscii::read_event. More...
 
void write_event (const GenEvent *evt)
 Wrapper for WriterAscii::write_event. More...
 
int rdstate () const
 Wrapper for Writer/Reader rdstate() More...
 
 IO_GenEvent (const string &filename, std::ios::openmode mode=std::ios::out)
 Filename constructor allowing both ios::in and ios::out modes. More...
 
 IO_GenEvent (std::istream &stream)
 Istream constructor. More...
 
 IO_GenEvent (std::ostream &stream)
 Ostream constructor. More...
 
 ~IO_GenEvent ()
 Default destructor. More...
 
bool fill_next_event (GenEvent *evt)
 Wrapper for ReaderAscii::read_event. More...
 
void write_event (const GenEvent *evt)
 Wrapper for WriterAscii::write_event. More...
 
int rdstate () const
 Wrapper for Writer/Reader rdstate() More...
 

Private Attributes

WriterAsciim_writer
 Instance of WriterAscii. More...
 
ReaderAsciim_reader
 Instance of ReaderAscii. More...
 

Constructor & Destructor Documentation

IO_GenEvent ( const string &  filename,
std::ios::openmode  mode = std::ios::out 
)
inline

Filename constructor allowing both ios::in and ios::out modes.

Definition at line 32 of file build/outputs/include/HepMC/IO_GenEvent.h.

References IO_GenEvent::m_reader, and IO_GenEvent::m_writer.

IO_GenEvent ( std::istream &  stream)
inline

Istream constructor.

Definition at line 41 of file build/outputs/include/HepMC/IO_GenEvent.h.

References IO_GenEvent::m_reader.

IO_GenEvent ( std::ostream &  stream)
inline

Ostream constructor.

Definition at line 49 of file build/outputs/include/HepMC/IO_GenEvent.h.

References IO_GenEvent::m_writer.

~IO_GenEvent ( )
inline

Default destructor.

Definition at line 56 of file build/outputs/include/HepMC/IO_GenEvent.h.

References IO_GenEvent::m_reader, and IO_GenEvent::m_writer.

IO_GenEvent ( const string &  filename,
std::ios::openmode  mode = std::ios::out 
)
inline

Filename constructor allowing both ios::in and ios::out modes.

Definition at line 32 of file include/HepMC/IO_GenEvent.h.

References IO_GenEvent::m_reader, and IO_GenEvent::m_writer.

IO_GenEvent ( std::istream &  stream)
inline

Istream constructor.

Definition at line 41 of file include/HepMC/IO_GenEvent.h.

References IO_GenEvent::m_reader.

IO_GenEvent ( std::ostream &  stream)
inline

Ostream constructor.

Definition at line 49 of file include/HepMC/IO_GenEvent.h.

References IO_GenEvent::m_writer.

~IO_GenEvent ( )
inline

Default destructor.

Definition at line 56 of file include/HepMC/IO_GenEvent.h.

References IO_GenEvent::m_reader, and IO_GenEvent::m_writer.

Member Function Documentation

bool fill_next_event ( GenEvent evt)
inline
bool fill_next_event ( GenEvent evt)
inline
int rdstate ( ) const
inline
int rdstate ( ) const
inline
void write_event ( const GenEvent evt)
inline
void write_event ( const GenEvent evt)
inline

Field Documentation

ReaderAscii * m_reader
private

Instance of ReaderAscii.

Todo:
Use unique_ptr
Todo:
Use unique_ptr

Definition at line 90 of file build/outputs/include/HepMC/IO_GenEvent.h.

WriterAscii * m_writer
private

Instance of WriterAscii.

Todo:
Use unique_ptr
Todo:
Use unique_ptr

Definition at line 86 of file build/outputs/include/HepMC/IO_GenEvent.h.


The documentation for this class was generated from the following file: