Jpp
|
Template specialisation of JMultipleFileScanner for Monte Carlo header. More...
#include <JMonteCarloFileSupportkit.hh>
Public Types | |
typedef JMultipleFileScanner::input_type | input_type |
typedef JRewindableObjectIterator < JNullType >::pointer_type | pointer_type |
typedef JObjectIterator< T > ::pointer_type | pointer_type |
Public Member Functions | |
JMultipleFileScanner () | |
Default constructor. More... | |
JMultipleFileScanner (const JMultipleFileScanner_t &file_list) | |
Copy constructor. More... | |
virtual void | rewind () |
Rewind. More... | |
virtual bool | setObject (Head &object) |
Set object. More... | |
const Head & | getHeader () |
Get Monte Carlo Header. More... | |
const std::string & | getFilename () const |
Get current file name. More... | |
counter_type | getCounter () const |
Get counter. More... | |
virtual bool | hasNext () |
Check availability of next element. More... | |
virtual const pointer_type & | next () |
Get next element. More... | |
virtual skip_type | skip (const skip_type ns) |
Skip items. More... | |
virtual skip_type | skip (const skip_type ns) |
Skip items. More... | |
virtual bool | hasNext () |
Check availability of next element. More... | |
virtual const pointer_type & | next () |
Get next element. More... | |
virtual bool | setObject (T &object)=0 |
Set object. More... | |
Protected Attributes | |
JFileScanner< JNullType > | scanner |
unsigned int | index |
counter_type | counter |
T | object |
object More... | |
bool | has_next |
status More... | |
Private Attributes | |
bool | do_next |
Template specialisation of JMultipleFileScanner for Monte Carlo header.
This class re-implements the methods rewind and setObject of the JLANG::JRewindableAbstractObjectIterator interface so that all header objects in the complete file list are read and added. It provides for the method getHeader which returns the sum of all Headers.
Definition at line 291 of file JMonteCarloFileSupportkit.hh.
|
inherited |
Definition at line 202 of file JMultipleFileScanner.hh.
|
inherited |
Definition at line 203 of file JMultipleFileScanner.hh.
|
inherited |
Definition at line 39 of file JAbstractObjectIterator.hh.
|
inline |
Default constructor.
Definition at line 299 of file JMonteCarloFileSupportkit.hh.
|
inline |
Copy constructor.
The file list is copied.
file_list | JMultipleFileScanner |
Definition at line 312 of file JMonteCarloFileSupportkit.hh.
|
inlinevirtual |
Rewind.
Reimplemented from JSUPPORT::JMultipleFileScanner<>.
Definition at line 324 of file JMonteCarloFileSupportkit.hh.
|
inlinevirtual |
Set object.
object | reference to object to be set |
Definition at line 336 of file JMonteCarloFileSupportkit.hh.
|
inline |
Get Monte Carlo Header.
Definition at line 392 of file JMonteCarloFileSupportkit.hh.
|
inlineinherited |
Get current file name.
Note that this method should only be called when method hasNext() returns true.
Definition at line 251 of file JMultipleFileScanner.hh.
|
inlineinherited |
Get counter.
Definition at line 262 of file JMultipleFileScanner.hh.
|
inlinevirtualinherited |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 289 of file JMultipleFileScanner.hh.
|
inlinevirtualinherited |
Get next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 337 of file JMultipleFileScanner.hh.
|
inlinevirtualinherited |
Skip items.
ns | number of items to skip |
Reimplemented in JSUPPORT::JMultipleFileScanner< JTypeList< JHead_t, JTail_t > >.
Definition at line 351 of file JMultipleFileScanner.hh.
|
inlinevirtualinherited |
Skip items.
ns | number of items to skip |
Reimplemented in JLANG::JPipe< T >, JLANG::JPipe< JTail_t >, JLANG::JPipe< JHead_t >, JLANG::JSTDObjectIterator< T >, JLANG::JAbstractObjectReader< T >, JLANG::JAbstractObjectReader< JNullType >, JLANG::JAbstractObjectReader< const T >, JLANG::JAbstractObjectReader< JTail_t >, JLANG::JAbstractObjectReader< JHead_t >, JLANG::JAbstractObjectReader< KM3NETDAQ::KM3NETDAQ::JDAQEvent >, JLANG::JAbstractObjectReader< JDAQSummaryslice >, and JLANG::JAbstractObjectReader< JTypeList< JDAQEvent, JTypelist_t > >.
Definition at line 88 of file JObjectIterator.hh.
|
inlinevirtualinherited |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 56 of file JAbstractObjectIterator.hh.
|
inlinevirtualinherited |
Get next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 71 of file JAbstractObjectIterator.hh.
|
pure virtualinherited |
Set object.
object | reference to object to be set |
Implemented in JNET::JControlHostObjectIterator< T >, JNET::JLigierObjectIterator< T >, JSUPPORT::JDAQFileReader< T, true >, JIO::JReaderObjectIterator< T >, and JLANG::JStreamObjectIterator< T >.
|
private |
Definition at line 407 of file JMonteCarloFileSupportkit.hh.
|
protectedinherited |
Definition at line 366 of file JMultipleFileScanner.hh.
|
protectedinherited |
Definition at line 367 of file JMultipleFileScanner.hh.
|
protectedinherited |
Definition at line 368 of file JMultipleFileScanner.hh.
|
protectedinherited |
object
Definition at line 34 of file JAbstractObjectIterator.hh.
|
protectedinherited |
status
Definition at line 35 of file JAbstractObjectIterator.hh.