33 testInvariant ()
const
35 for (FilesIter
file = m_files.begin(),
36 end = m_files.end();
file != end; ++
file)
55 SampleLocal (
const std::string& name)
64 add (
const std::string&
file)
69 std::string myfile =
file;
70 if (myfile.find (
":/") == std::string::npos)
73 myfile = gSystem->WorkingDirectory() + (
"/" + myfile);
74 myfile =
"file://" + myfile;
76 m_files.push_back (myfile);
81 std::size_t SampleLocal ::
85 return m_files.size();
90 std::string SampleLocal ::
91 getFileName (
const std::size_t
index)
const
96 return m_files[
index];
101 SamplePtr SampleLocal ::
105 return SamplePtr (
const_cast<SampleLocal*
>(
this));
110 std::vector<std::string> SampleLocal ::
111 doMakeFileList ()
const
115 std::vector<std::string>
result;
116 for (FilesIter
file = m_files.begin(),
117 end = m_files.end();
file != end; ++
file)
125 doUpdateLocation (
const std::string& from,
const std::string& to)
128 for (FilesMIter
file = m_files.begin(),
129 end = m_files.end();
file != end; ++
file)
131 if (strncmp (
file->c_str(), from.c_str(), from.size()) == 0)
132 *
file = to +
"/" +
file->substr (from.size());