BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Database/DatabaseSvc/DatabaseSvc-00-00-24/DatabaseSvc/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
10#include "DatabaseSvc/DatabaseRecord.h"
11
12static const InterfaceID IID_IDatabaseSvc("IDatabaseSvc", 1, 0);
13
14class 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; }
23 static const std::string& serviceInUse() {
24 return g_serviceInUse;
25 };
26
27 virtual int query(const std::string& dbName, const std::string& sql, DatabaseRecordVector& res)=0;
28
29 protected:
30
31 static std::string g_serviceInUse;
32
33};
34
35#endif
virtual int query(const std::string &dbName, const std::string &sql, DatabaseRecordVector &res)=0