#ifndef __JSUPPORT__JTREESAMPLER__ #define __JSUPPORT__JTREESAMPLER__ #include "JLang/JSampler.hh" #include "JLang/JTemplate.hh" #include "JLang/JObjectSampler.hh" #include "JSupport/JTreeScanner.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 JTreeSampler : public JTemplate< JTreeScanner >, public JObjectSampler { typedef JSampler_t sampler_type; /** * Constructor. * * \param sampler sampler */ JTreeSampler(const sampler_type& sampler = sampler_type()) : JTemplate< JTreeScanner >(), JObjectSampler(this->template get,true>(), sampler) {} }; } #endif