#ifndef __JSUPPORT__JMULTIPLEFILESAMPLER__ #define __JSUPPORT__JMULTIPLEFILESAMPLER__ #include "JLang/JSampler.hh" #include "JLang/JTemplate.hh" #include "JLang/JObjectSampler.hh" #include "JSupport/JMultipleFileScanner.hh" /** * \author mdejong */ namespace JSUPPORT {} namespace JPP { using namespace JSUPPORT; } namespace JSUPPORT { using JLANG::JSampler; using JLANG::JTemplate; using JLANG::JObjectSampler; /** * Auxiliary class to sample from a list of files. */ template class JSampler_t = JSampler> struct JMultipleFileSampler : public JTemplate< JMultipleFileScanner >, public JObjectSampler { typedef JSampler_t sampler_type; /** * Constructor. * * \param sampler sampler */ JMultipleFileSampler(const sampler_type& sampler = sampler_type()) : JTemplate< JMultipleFileScanner >(), JObjectSampler(this->template get,true>(), sampler) {} }; } #endif