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() [1/6]

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() [2/6]

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() [3/6]

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() [1/2]

~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() [4/6]

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() [5/6]

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() [6/6]

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() [2/2]

~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

◆ fill_next_event() [1/2]

bool fill_next_event ( GenEvent evt)
inline

◆ fill_next_event() [2/2]

bool fill_next_event ( GenEvent evt)
inline

◆ rdstate() [1/2]

int rdstate ( ) const
inline

◆ rdstate() [2/2]

int rdstate ( ) const
inline

◆ write_event() [1/2]

void write_event ( const GenEvent evt)
inline

◆ write_event() [2/2]

void write_event ( const GenEvent evt)
inline

Field Documentation

◆ m_reader

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.

◆ m_writer

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: