Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CdbUrlSavev1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CdbUrlSavev1.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FFAOBJECTS_CDBURLSAVEV1_H
4 #define FFAOBJECTS_CDBURLSAVEV1_H
5 
6 #include "CdbUrlSave.h"
7 
8 #include <cstdint> // for uint64_t
9 #include <iostream>
10 #include <string> // for string
11 #include <tuple>
12 #include <vector> // for vector<>::const_iterator, vector
13 
14 class PHObject;
15 
17 class CdbUrlSavev1 : public CdbUrlSave
18 {
19  public:
21  ~CdbUrlSavev1() override {}
22 
23  PHObject *CloneMe() const override;
24 
26  void Reset() override;
27 
31  void identify(std::ostream &os = std::cout) const override;
32 
34  int isValid() const override;
35 
36  void AddUrl(const std::string &domain, const std::string &url, const uint64_t timestamp) override;
37  void AddUrl(const std::tuple<std::string, std::string, uint64_t> &tup) override;
38 
39  std::vector<std::tuple<std::string, std::string, uint64_t>>::const_iterator begin() const override;
40  std::vector<std::tuple<std::string, std::string, uint64_t>>::const_iterator end() const override;
41 
42  private:
43  std::vector<std::tuple<std::string, std::string, uint64_t>> m_CdbUrlVector;
44 
45  ClassDefOverride(CdbUrlSavev1, 1)
46 };
47 
48 #endif