EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FROG.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FROG.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FROG_FROG_H
4 #define FROG_FROG_H
5 
6 #include <string>
7 
8 namespace odbc
9 {
10  class Connection;
11 }
12 
13 class FROG
14 {
15  public:
16  FROG() {}
17  virtual ~FROG() {}
18 
19  const char *location(const std::string &logical_name);
20  bool localSearch(const std::string &lname);
21  bool dCacheSearch(const std::string &lname);
22  bool XRootDSearch(const std::string &lname);
23  bool LustreSearch(const std::string &lname);
24  bool MinIOSearch(const std::string &lname);
25  bool PGSearch(const std::string &lname);
26  void Verbosity(const int i) { m_Verbosity = i; }
27  int Verbosity() const { return m_Verbosity; }
28 
29  private:
30  bool GetConnection();
31  void Disconnect();
32  odbc::Connection *m_OdbcConnection = nullptr;
33  int m_Verbosity = 0;
34  std::string pfn;
35 };
36 
37 #endif