25 const std::string& pattern)
28 auto mysample = std::make_shared<SampleLocal> (sampleName);
30 std::regex mypattern (pattern.c_str());
31 for (
auto& sample :
sh.samples())
35 for (
unsigned file = 0, end = sample->numFiles();
38 mysample->add (sample->fileName (
file));
A class that manages a list of Sample objects.
void add(const Sample &sample)
add a copy of the sample to the handler
bool match_expr(const std::regex &expr, std::string_view str)
returns: whether we can match the entire string with the regular expression guarantee: strong failure...
This module provides a lot of global definitions, forward declarations and includes that are used by ...
void mergeSamples(SampleHandler &sh, const std::string &sampleName, const std::string &pattern)
effects: remove all samples matching the name pattern, and join them into a single sample named sampl...