Jpp
master_rocky
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< T >::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< T > | scanner |
unsigned int | index |
counter_type | counter |
T | object |
object More... | |
bool | has_next |
status More... | |
Private Attributes | |
bool | do_next |
pointer_type | ps |
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 413 of file JMonteCarloFileSupportkit.hh.
|
inherited |
Definition at line 309 of file JMultipleFileScanner.hh.
|
inherited |
Definition at line 310 of file JMultipleFileScanner.hh.
|
inherited |
Definition at line 39 of file JAbstractObjectIterator.hh.
|
inline |
Default constructor.
Definition at line 421 of file JMonteCarloFileSupportkit.hh.
|
inline |
Copy constructor.
The file list is copied.
file_list | JMultipleFileScanner |
Definition at line 434 of file JMonteCarloFileSupportkit.hh.
|
inlineoverridevirtual |
Rewind.
Reimplemented from JSUPPORT::JMultipleFileScanner<>.
Definition at line 446 of file JMonteCarloFileSupportkit.hh.
|
inlineoverridevirtual |
Set object.
object | reference to object to be set |
Definition at line 458 of file JMonteCarloFileSupportkit.hh.
|
inline |
Get Monte Carlo Header.
Definition at line 515 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 371 of file JMultipleFileScanner.hh.
|
inlineinherited |
Get counter.
Definition at line 382 of file JMultipleFileScanner.hh.
|
inlineoverridevirtualinherited |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 409 of file JMultipleFileScanner.hh.
|
inlineoverridevirtualinherited |
Get next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 457 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 471 of file JMultipleFileScanner.hh.
|
inlinevirtualinherited |
Skip items.
ns | number of items to skip |
Reimplemented in JLANG::JSTDObjectIterator< T >, JLANG::JPipe< T >, JLANG::JPipe< JTail_t >, JLANG::JPipe< JHead_t >, and JLANG::JAbstractObjectReader< T >.
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 JSUPPORT::JDAQFileReader< T, true >, JNET::JLigierObjectIterator< T >, JNET::JControlHostObjectIterator< T >, JLANG::JStreamObjectIterator< T >, JIO::JReaderObjectIterator< T >, and JDATABASE::JDatabaseObjectIterator< T >.
|
static |
Allow merging of files w/o header.
Initialisation of merge option.
Definition at line 528 of file JMonteCarloFileSupportkit.hh.
|
private |
Definition at line 531 of file JMonteCarloFileSupportkit.hh.
|
protectedinherited |
Definition at line 486 of file JMultipleFileScanner.hh.
|
protectedinherited |
Definition at line 487 of file JMultipleFileScanner.hh.
|
protectedinherited |
Definition at line 488 of file JMultipleFileScanner.hh.
|
protectedinherited |
object
Definition at line 34 of file JAbstractObjectIterator.hh.
|
protectedinherited |
status
Definition at line 35 of file JAbstractObjectIterator.hh.
|
privateinherited |
Definition at line 84 of file JAbstractObjectIterator.hh.