Jpp
17.2.0
the software that should make you happy
|
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 () override |
Rewind. More... | |
virtual bool | setObject (Head &object) override |
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 () override |
Check availability of next element. More... | |
virtual const pointer_type & | next () override |
Get next element. More... | |
virtual skip_type | skip (const skip_type ns) override |
Skip items. More... | |
virtual skip_type | skip (const skip_type ns) |
Skip items. More... | |
virtual bool | hasNext () override |
Check availability of next element. More... | |
virtual const pointer_type & | next () override |
Get next element. More... | |
virtual bool | setObject (T &object)=0 |
Set object. More... | |
Static Public Attributes | |
static bool | merge = false |
Allow merging of files w/o header. 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 JSUPPORT::getHeader which returns the sum of all headers.
Definition at line 357 of file JMonteCarloFileSupportkit.hh.
|
inherited |
Definition at line 306 of file JMultipleFileScanner.hh.
|
inherited |
Definition at line 307 of file JMultipleFileScanner.hh.
|
inherited |
Definition at line 39 of file JAbstractObjectIterator.hh.
|
inline |
Default constructor.
Definition at line 365 of file JMonteCarloFileSupportkit.hh.
|
inline |
Copy constructor.
The file list is copied.
file_list | JMultipleFileScanner |
Definition at line 378 of file JMonteCarloFileSupportkit.hh.
|
inlineoverridevirtual |
Rewind.
Reimplemented from JSUPPORT::JMultipleFileScanner<>.
Definition at line 390 of file JMonteCarloFileSupportkit.hh.
|
inlineoverridevirtual |
Set object.
object | reference to object to be set |
Definition at line 402 of file JMonteCarloFileSupportkit.hh.
|
inline |
Get Monte Carlo Header.
Definition at line 459 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 368 of file JMultipleFileScanner.hh.
|
inlineinherited |
Get counter.
Definition at line 379 of file JMultipleFileScanner.hh.
|
inlineoverridevirtualinherited |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 406 of file JMultipleFileScanner.hh.
|
inlineoverridevirtualinherited |
Get next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 454 of file JMultipleFileScanner.hh.
|
inlineoverridevirtualinherited |
Skip items.
ns | number of items to skip |
Reimplemented in JSUPPORT::JMultipleFileScanner< JTypeList< JHead_t, JTail_t > >.
Definition at line 468 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 >, and JLANG::JAbstractObjectReader< JDAQSummaryslice >.
Definition at line 90 of file JObjectIterator.hh.
|
inlineoverridevirtualinherited |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 56 of file JAbstractObjectIterator.hh.
|
inlineoverridevirtualinherited |
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 JDATABASE::JDatabaseObjectIterator< T >, JNET::JControlHostObjectIterator< T >, JNET::JLigierObjectIterator< T >, JSUPPORT::JDAQFileReader< T, true >, JIO::JReaderObjectIterator< T >, and JLANG::JStreamObjectIterator< T >.
|
static |
Allow merging of files w/o header.
Initialisation of merge option.
Definition at line 472 of file JMonteCarloFileSupportkit.hh.
|
private |
Definition at line 475 of file JMonteCarloFileSupportkit.hh.
|
protectedinherited |
Definition at line 483 of file JMultipleFileScanner.hh.
|
protectedinherited |
Definition at line 484 of file JMultipleFileScanner.hh.
|
protectedinherited |
Definition at line 485 of file JMultipleFileScanner.hh.
|
protectedinherited |
object
Definition at line 34 of file JAbstractObjectIterator.hh.
|
protectedinherited |
status
Definition at line 35 of file JAbstractObjectIterator.hh.