1 #ifndef __JSUPPORT__JTRIGGERPARAMETERSSUPPORTKIT__
2 #define __JSUPPORT__JTRIGGERPARAMETERSSUPPORTKIT__
81 using namespace JLANG;
86 unsigned int count = 0;
90 for (const_iterator i = this->begin(); i != this->end(); ++i) {
100 else if (!
object.
equals(*__p))
101 THROW(
JException,
"JMultipleFileScanner<JTriggerParameters>::setObject(): inconsistent trigger parameters.");
127 if (!this->
hasNext() || (p = this->
next()) == NULL) {
128 THROW(
JNullPointerException,
"JMultipleFileScanner<JTriggerParameters>::getTriggerParameters(): Missing trigger parameters.");
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Exception for null pointer operation.
Abstract object iterator with rewinding.
Object reading from file.
Template specialisation of JMultipleFileScanner for trigger parameters.
JMultipleFileScanner(const JMultipleFileScanner_t &file_list)
Copy constructor.
virtual bool setObject(JTriggerParameters &object) override
Set object.
const JTriggerParameters & getTriggerParameters()
Get trigger parameters.
virtual void rewind() override
Rewind.
JMultipleFileScanner()
Default constructor.
General purpose class for object reading from a list of file names.
virtual void rewind() override
Rewind.
virtual bool hasNext() override
Check availability of next element.
virtual const pointer_type & next() override
Get next element.
JFileScanner< T > scanner
Data structure for all trigger parameters.
Auxiliary classes and methods for language specific functionality.
bool equals(const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min())
Check equality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Support classes and methods for experiment specific I/O.
JTriggerParameters getTriggerParameters(const JMultipleFileScanner_t &file_list)
Get trigger parameters.
Auxiliary class for defining the range of iterations of objects.
Auxiliary base class for list of file names.