ATLAS Offline Software
Loading...
Searching...
No Matches
VP1AvailEvtsLocalDir.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7// //
8// Implementation of class VP1AvailEvtsLocalDir //
9// //
10// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
11// Initial version: May 2008 //
12// //
14
17
18#include <QStringList>
19
20//____________________________________________________________________
22public:
23 Imp(const QString& sd) : sourcedir(sd), retriever(0) {}
24 QString sourcedir;
25 static unsigned ntmpdlcount;
28};
29
31
32//____________________________________________________________________
34 const QString& sourcedir,
35 const QString& tmpcopydir,
37 QObject * parent )
39 m_d(new Imp(sourcedir+(sourcedir.endsWith("/")?"":"/")))
40{
41}
42
43
44//____________________________________________________________________
46{
47 m_d->retriever = new VP1LocalEvtRetriever(this,m_d->sourcedir); // Memleak
48 m_d->retriever->start();
49}
50
51//____________________________________________________________________
56
57//____________________________________________________________________
59{
60 return m_d->sourcedir;
61}
62
63//____________________________________________________________________
64void VP1AvailEvtsLocalDir::setSourceDir(const QString& dir)
65{
66 m_d->retriever->setSourceDir(dir);
67 m_d->sourcedir = dir;
68}
69
70//____________________________________________________________________
72{
73 m_d->availablesourcedirs = l;
74}
75
76
77//____________________________________________________________________
79{
80 return m_d->availablesourcedirs;
81}
bool endsWith(const std::string &value, const std::string &ending)
VP1AvailEvents(int timeCutForNew, const QString &tmpdir, int maxLocalFilesToKeep=-1, QObject *parent=0)
int timeCutForNew() const
int maxLocalFilesToKeep() const
VP1LocalEvtRetriever * retriever
VP1AvailEvtsLocalDir(int timeCutForNew, const QString &sourcedir, const QString &tmpcopydir, int maxLocalFilesToKeep=-1, QObject *parent=0)
const QString & currentSourceDir() const
void setSourceDir(const QString &)
const QStringList & availableSourceDirectories() const
void setAvailableSourceDirectories(const QStringList &)