Project
Loading...
Searching...
No Matches
CCDBQuery.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16
17#ifndef ALICEO2_CCDBQUERY_H
18#define ALICEO2_CCDBQUERY_H
19
20#include <string>
21#include <map>
22#include "Rtypes.h" // for ClassDefNV
23
24class TFile;
25
26namespace o2
27{
28namespace ccdb
29{
30
31// encapsulate information how CCDB was queried
32struct CCDBQuery {
33 CCDBQuery() = default;
34 CCDBQuery(std::string const& p, std::map<std::string, std::string> const& f, long ts) : path{p}, metafilter{f}, timestamp{ts} {}
35
36 std::string path; // the path of the object to fetch
37 std::map<std::string, std::string> metafilter; // filter on metadata
38 long timestamp = -1; // the timestamp of the query
39
40 void print() const;
41
43};
44
45} // namespace ccdb
46} // namespace o2
47
48#endif
GLdouble f
Definition glcorearb.h:310
GLsizei const GLchar *const * path
Definition glcorearb.h:3591
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
CCDBQuery(std::string const &p, std::map< std::string, std::string > const &f, long ts)
Definition CCDBQuery.h:34
void print() const
Definition CCDBQuery.cxx:17
ClassDefNV(CCDBQuery, 1)
std::string path
Definition CCDBQuery.h:36
std::map< std::string, std::string > metafilter
Definition CCDBQuery.h:37