This module defines an implementation of Sample that contains composite samples. More...
#include <SampleComposite.h>
Public Member Functions | |
| void | testInvariant () const |
| test the invariant of this object | |
| SampleComposite () | |
| standard constructor | |
| SampleComposite (const std::string &name) | |
| standard constructor | |
| void | add (const SamplePtr &sample) |
| add a sample to the list | |
Protected Member Functions | |
| virtual std::size_t | getNumFiles () const |
| virtual std::string | getFileName (std::size_t index) const |
| virtual SamplePtr | doMakeLocal () const |
| virtual std::vector< std::string > | doMakeFileList () const |
| virtual void | doUpdateLocation (const std::string &from, const std::string &to) |
| virtual bool | getContains (const std::string &name) const |
| virtual void | doAddSamples (SampleHandler &result) |
This module defines an implementation of Sample that contains composite samples.
| SH::SampleComposite::SampleComposite | ( | ) |
standard constructor
| SH::SampleComposite::SampleComposite | ( | const std::string & | name | ) |
standard constructor
| name | the name of the sample |
| void SH::SampleComposite::add | ( | const SamplePtr & | sample | ) |
add a sample to the list
| virtual void SH::SampleComposite::doAddSamples | ( | SampleHandler & | result | ) | [protected, virtual] |
add all samples this sample corresponds to to the given sample handler
Reimplemented from SH::Sample.
| virtual std::vector<std::string> SH::SampleComposite::doMakeFileList | ( | ) | const [protected, virtual] |
make a list of all files, prestaging them if necessary
Implements SH::Sample.
| virtual SamplePtr SH::SampleComposite::doMakeLocal | ( | ) | const [protected, virtual] |
Make this a local sample, i.e. one which can be directly opened with TFile::Open.
Implements SH::Sample.
| virtual void SH::SampleComposite::doUpdateLocation | ( | const std::string & | from, | |
| const std::string & | to | |||
| ) | [protected, virtual] |
update all file references starting with from to to
| from | the original path to the data area | |
| to | the new path to the data area |
Reimplemented from SH::Sample.
| virtual bool SH::SampleComposite::getContains | ( | const std::string & | name | ) | const [protected, virtual] |
whether this sample contains a sample of the given name
Reimplemented from SH::Sample.
| virtual std::string SH::SampleComposite::getFileName | ( | std::size_t | index | ) | const [protected, virtual] |
the name of the file with the given index
| index | the index of the file |
Implements SH::Sample.
| virtual std::size_t SH::SampleComposite::getNumFiles | ( | ) | const [protected, virtual] |
the number of files in the sample
Implements SH::Sample.
| void SH::SampleComposite::testInvariant | ( | ) | const |
1.6.1