32 const std::string& pattern)
35 std::unique_ptr<SampleLocal> mysample (
new SampleLocal (sampleName));
37 std::regex mypattern (pattern.c_str());
39 end =
sh.end(); sample != end; ++ sample)
43 for (
unsigned file = 0, end = (*sample)->numFiles();
46 mysample->add ((*sample)->fileName (
file));
53 mysh.
add (mysample.release());
A class that manages a list of Sample objects.
std::vector< Sample * >::const_iterator iterator
the iterator to use
void add(Sample *sample)
add a sample to the handler
A Sample based on a simple file list.
bool match_expr(const std::regex &expr, const std::string &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...