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
TSQLUrl.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TSQLUrl.h
1
// $Id: TSQLUrl.h,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
2
3
#ifndef RDBC_TSQLUrl_h
4
#define RDBC_TSQLUrl_h
5
6
//
7
// URL string parser
8
//
9
10
#ifndef ROOT_TQObject
11
#include "TQObject.h"
12
#endif
13
#ifndef ROOT_TObject
14
#include "TObject.h"
15
#endif
16
17
class
TSQLException
;
18
class
TSQLUrlParser;
20
class
TSQLUrl
:
public
TObject,
public
TQObject
21
{
22
private
:
23
TSQLUrlParser*
fParser
;
// URL parser
24
25
public
:
26
TSQLUrl
() {
fParser
=0; }
27
TSQLUrl
(
const
TString&
url
);
28
TSQLUrl
(
const
TString& dsn,
const
TString&
description
);
29
TSQLUrl
(
const
TSQLUrl
&
url
);
30
virtual
~TSQLUrl
();
31
32
TSQLUrl
&
operator=
(
const
TSQLUrl
&
url
);
33
operator
const
char
*() { TString
str
=
GetUrl
();
return
str.Data(); }
34
TSQLUrl
&
operator=
(
const
char
*
s
) {
TSQLUrl
url
(s); *
this
=
url
;
return
*
this
; }
35
36
TString
GetDSN
()
const
;
37
TString
GetUrl
()
const
;
38
TString
GetProtocol
()
const
;
39
TString
GetSubProtocol
()
const
;
40
TString
GetDriver
()
const
;
41
TString
GetHost
()
const
;
42
TString
GetFile
()
const
;
43
TString
GetAnchor
()
const
;
44
TString
GetOptions
()
const
;
45
TString
GetDescription
()
const
;
46
Int_t
GetPort
()
const
;
47
Bool_t
IsValid
()
const
;
48
Bool_t
IsDynamicDSN
()
const
;
49
void
AddOption
(
const
TString& opt);
50
51
virtual
void
Print
(Option_t *option=
""
)
const
;
52
virtual
void
ls
(Option_t *option=
""
)
const
;
53
virtual
const
char
*
GetName
()
const
;
54
virtual
const
char
*
GetTitle
()
const
;
55
56
void
Throw
(
TSQLException
*
e
) { Emit(
"Throw(TSQLException*)"
,(
long
)e); }
//*SIGNAL*
57
58
ClassDef(
TSQLUrl
,0)
// URL string parser
59
};
60
61
#endif // RDBC_TSQLUrl_h
RDBC
blob
master
include
RDBC
TSQLUrl.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:48
using
1.8.2 with
sPHENIX GitHub integration