BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
IDatabaseSvc.h
Go to the documentation of this file.
1#ifndef IDATABASESVC_H
2#define IDATABASESVC_H
3
4// Base classes
5#include "GaudiKernel/IService.h"
6#include <string>
7#include <vector>
8#include <map>
9
11
12//static const InterfaceID IID_IDatabaseSvc("IDatabaseSvc", 1, 0);
13class IDatabaseSvc : virtual public IInterface
14//class IDatabaseSvc : virtual public IService
15{
16
17 public:
18 /* Virtual destructor */
19 virtual ~IDatabaseSvc() {};
20
21 public:
22 //static const InterfaceID& interfaceID() { return IID_IDatabaseSvc; }
24 static const std::string& serviceInUse() {
25 return g_serviceInUse;
26 };
27
28 virtual int query(const std::string& dbName, const std::string& sql, DatabaseRecordVector& res)=0;
29
30 protected:
31
32 static std::string g_serviceInUse;
33
34};
35
36#endif
static std::string g_serviceInUse
Definition: IDatabaseSvc.h:32
static const std::string & serviceInUse()
Definition: IDatabaseSvc.h:24
DeclareInterfaceID(IDatabaseSvc, 1, 0)
virtual ~IDatabaseSvc()
Definition: IDatabaseSvc.h:19
virtual int query(const std::string &dbName, const std::string &sql, DatabaseRecordVector &res)=0