14 #ifndef DATABASERETRIEVALALG_H 15 #define DATABASERETRIEVALALG_H 38 const std::string& url,
39 const std::string& url2 =
"",
40 const std::string& tag =
"",
41 bool usesqlite =
false,
42 bool testmode =
false)
43 : fFolder(new
DBFolder(foldername, url, url2, tag, usesqlite, testmode))
55 bool UpdateFolder(DBTimeStamp_t ts) {
return fFolder->UpdateData(ts); }
58 const std::string&
URL()
const {
return fFolder->URL(); }
59 const std::string&
FolderName()
const {
return fFolder->FolderName(); }
60 const std::string&
Tag()
const {
return fFolder->Tag(); }
std::unique_ptr< DBFolder > fFolder
DatabaseRetrievalAlg(fhicl::ParameterSet const &p)
const std::string & URL() const
Get connection information.
DatabaseRetrievalAlg(const std::string &foldername, const std::string &url, const std::string &url2="", const std::string &tag="", bool usesqlite=false, bool testmode=false)
Constructors.
bool UpdateFolder(DBTimeStamp_t ts)
Return true if fFolder is successfully updated.
const IOVTimeStamp & End() const
virtual ~DatabaseRetrievalAlg()
Default destructor.
const std::string & Tag() const
Filters for channels, events, etc.
const IOVTimeStamp & Begin() const
Get Timestamp information.
const std::string & FolderName() const