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
10
#include "
DatabaseSvc/DatabaseRecord.h
"
11
12
//static const InterfaceID IID_IDatabaseSvc("IDatabaseSvc", 1, 0);
13
class
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; }
23
DeclareInterfaceID
(
IDatabaseSvc
, 1, 0);
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
DatabaseRecord.h
DatabaseRecordVector
Definition:
DatabaseRecord.h:75
IDatabaseSvc
Definition:
IDatabaseSvc.h:15
IDatabaseSvc::g_serviceInUse
static std::string g_serviceInUse
Definition:
IDatabaseSvc.h:32
IDatabaseSvc::serviceInUse
static const std::string & serviceInUse()
Definition:
IDatabaseSvc.h:24
IDatabaseSvc::DeclareInterfaceID
DeclareInterfaceID(IDatabaseSvc, 1, 0)
IDatabaseSvc::~IDatabaseSvc
virtual ~IDatabaseSvc()
Definition:
IDatabaseSvc.h:19
IDatabaseSvc::query
virtual int query(const std::string &dbName, const std::string &sql, DatabaseRecordVector &res)=0
source
Database
DatabaseSvc
DatabaseSvc-00-01-02
DatabaseSvc
IDatabaseSvc.h
Generated by
1.9.6