Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TSQLDriverManager.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TSQLDriverManager.h
1
// $Id: TSQLDriverManager.h,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
2
3
#ifndef RDBC_TSQLDriverManager_h
4
#define RDBC_TSQLDriverManager_h
5
6
//
7
// TSQLDriverManager - "plug-in" loader
8
//
9
10
#ifndef RDBC_TSQL_h
11
#include <
RDBC/TSQL.h
>
12
#endif
13
14
#ifndef ROOT_TObject
15
#include "TObject.h"
16
#endif
17
18
class
TSQLConnection
;
20
class
TSQLDriverManager
:
public
TObject,
public
TSQL
21
{
22
friend
TSQLDriverManager
*
InitGlobalDriverManager
();
23
24
private
:
25
TSQLDriverManager
(
const
TSQLDriverManager
&)
// forbid
26
: TObject(),
TSQL
() {}
// forbid
27
void
operator=
(
const
TSQLDriverManager
&) {}
// forbid
28
TSQLDriverManager
();
// forbid
29
30
public
:
31
~TSQLDriverManager
();
32
static
TSQLConnection
*
GetConnection
(
const
TString& connectString );
33
static
TSQLConnection
*
GetConnection
(
const
TString& dsn,
34
const
TString& user,
35
const
TString& password=
""
);
36
static
Int_t
GetLoginTimeout
();
37
static
void
SetLoginTimeout
( Int_t seconds );
38
static
void
Shutdown
();
39
static
TList*
GetDataSources
();
40
static
TList*
GetDrivers
();
41
static
TList*
GetConnections
();
42
const
char
*
GetName
()
const
{
return
"gSQLDriverManager"
; }
43
44
ClassDef(
TSQLDriverManager
,0)
//The basic service for managing a set of drivers.
45
};
46
47
R__EXTERN
TSQLDriverManager
*
gSQLDriverManager
;
48
49
#endif // RDBC_TSQLDriverManager_h
RDBC
blob
master
include
RDBC
TSQLDriverManager.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:48
using
1.8.2 with
sPHENIX GitHub integration