7#ifndef SAMPLE_HANDLER_SAMPLE_COMPOSITE_HH
8#define SAMPLE_HANDLER_SAMPLE_COMPOSITE_HH
68 void add (std::shared_ptr<Sample> sample);
86 virtual std::unique_ptr<SampleLocal>
doMakeLocal ()
const override;
104 const std::shared_ptr<Sample>& self)
override;
void add(std::shared_ptr< Sample > sample)
add a sample to the list
virtual std::unique_ptr< SampleLocal > doMakeLocal() const override
Make this a local sample, i.e.
virtual void doUpdateLocation(const std::string &from, const std::string &to) override
update all file references starting with from to to
void testInvariant() const
test the invariant of this object
virtual void doAddSamples(SampleHandler &result, const std::shared_ptr< Sample > &self) override
add all samples this sample corresponds to to the given sample handler
ClassDefOverride(SampleComposite, 1)
virtual std::size_t getNumFiles() const override
the number of files in the sample
virtual bool getContains(const std::string &name) const override
whether this sample contains a sample of the given name
SampleComposite(const std::string &name)
standard constructor
virtual std::vector< std::string > doMakeFileList() const override
make a list of all files, prestaging them if necessary
std::vector< std::shared_ptr< Sample > >::const_iterator SamplesIter
the iterator for m_samples
SampleComposite()
standard constructor
std::vector< std::shared_ptr< Sample > > m_samples
the list of samples we use
virtual std::string getFileName(std::size_t index) const override
the name of the file with the given index
A class that manages a list of Sample objects.
Sample(const std::string &name)
standard constructor
const std::string & name() const
the name of the sample we are using
This module provides a lot of global definitions, forward declarations and includes that are used by ...