#include <geant4/tree/geant4-10.6-release/source/visualization/HepRep/include/HEPREP/HepRepReader.h>
HepRepReader interface.
- Author
- Mark Donszelmann
Definition at line 24 of file HepRepReader.h.
View newest version in sPHENIX GitHub at line 24 of file HepRepReader.h
virtual HEPREP::HepRepReader::~HepRepReader |
( |
| ) |
|
|
inlinevirtual |
virtual bool HEPREP::HepRepReader::close |
( |
| ) |
|
|
pure virtual |
Closes the reader and its underlying stream.
- Returns
- false in case of a stream problem.
virtual std::string HEPREP::HepRepReader::entryName |
( |
| ) |
|
|
pure virtual |
Returns the current entry name (random acces only).
- Returns
- name of the current entry or null if not supported.
virtual std::vector<std::string> HEPREP::HepRepReader::entryNames |
( |
| ) |
|
|
pure virtual |
Returns a list of names of available entries (random rccess only). Zip files may contain instructions to skip a number of files. These files will not be included in the entries.
- Returns
- list of entrynames or null if not supported.
virtual std::string HEPREP::HepRepReader::getProperty |
( |
std::string |
key, |
|
|
std::string |
defaultValue |
|
) |
| |
|
pure virtual |
Returns a property (if set in the heprep.properties file).
- Parameters
-
key | property name |
defaultValue | value if property not found |
virtual bool HEPREP::HepRepReader::hasNext |
( |
| ) |
|
|
pure virtual |
Is there a next heprep.
- Returns
- true if the next heprep is available.
virtual bool HEPREP::HepRepReader::hasRandomAccess |
( |
| ) |
|
|
pure virtual |
Allows random access.
- Returns
- true if this reader provides random access
virtual bool HEPREP::HepRepReader::hasSequentialAccess |
( |
| ) |
|
|
pure virtual |
Allows for sequential access.
- Returns
- true if sequential access is possible.
virtual HepRep* HEPREP::HepRepReader::next |
( |
| ) |
|
|
pure virtual |
Reads the next HepRep from the Reader.
- Returns
- heprep.
virtual HepRep* HEPREP::HepRepReader::read |
( |
std::string |
name | ) |
|
|
pure virtual |
Reads a HepRep by name (random access only).
- Parameters
-
name | for the heprep to be read. |
- Returns
- heprep.
virtual bool HEPREP::HepRepReader::reset |
( |
| ) |
|
|
pure virtual |
Resets a sequential HepRep reader.
- Returns
- false in case of a stream problem.
virtual int HEPREP::HepRepReader::size |
( |
| ) |
|
|
pure virtual |
Returns the (estimated) number of HepReps in the reader. Zip files may contain instructions to skip a number of files. These files will not be included in the estimate.
- Returns
- number of HepReps, or -1 if cannot be calculated.
virtual int HEPREP::HepRepReader::skip |
( |
int |
n | ) |
|
|
pure virtual |
Skips a number of HepReps in the reader. Zip files may contain instructions to skip a number of files. These files will not be included in the count to be skipped.
- Parameters
-
n | number of HepReps to be skipped. |
- Returns
- number of HepReps skipped.
The documentation for this class was generated from the following file:
- geant4/tree/geant4-10.6-release/source/visualization/HepRep/include/HEPREP/HepRepReader.h