BOSS
7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Database/DatabaseSvc/DatabaseSvc-00-00-26/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
12
static
const
InterfaceID IID_IDatabaseSvc(
"IDatabaseSvc"
, 1, 0);
13
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
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
DatabaseRecordVector
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DatabaseRecord.h:75
IDatabaseSvc
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/IDatabaseSvc.h:15
IDatabaseSvc::interfaceID
static const InterfaceID & interfaceID()
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/IDatabaseSvc.h:22
IDatabaseSvc::serviceInUse
static const std::string & serviceInUse()
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/IDatabaseSvc.h:23
IDatabaseSvc::~IDatabaseSvc
virtual ~IDatabaseSvc()
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/IDatabaseSvc.h:19
IDatabaseSvc::g_serviceInUse
static std::string g_serviceInUse
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/IDatabaseSvc.h:31
IDatabaseSvc::query
virtual int query(const std::string &dbName, const std::string &sql, DatabaseRecordVector &res)=0
source
Database
DatabaseSvc
DatabaseSvc-00-00-26
DatabaseSvc
IDatabaseSvc.h
Generated by
1.9.6