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
PgPostApplication.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PgPostApplication.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef PDBCALPG_PGPOSTAPPLICATION_H
4
#define PDBCALPG_PGPOSTAPPLICATION_H
5
6
#include <pdbcalbase/Pdb.h>
7
#include <pdbcalbase/PdbApplication.h>
8
9
#include <string>
10
11
class
PdbCalBank
;
12
class
TSQLConnection
;
13
14
class
PgPostApplication
:
public
PdbApplication
15
{
16
protected
:
17
PgPostApplication
(
const
std::string
&dbname);
18
19
public
:
20
virtual
~PgPostApplication
();
21
PdbStatus
startUpdate
();
22
PdbStatus
startRead
();
23
PdbStatus
commit
();
24
PdbStatus
commit
(
PdbCalBank
*);
25
PdbStatus
commit
(
PdbCalBank
*,
int
rid,
long
,
long
,
long
);
26
27
PdbStatus
abort
();
28
PdbStatus
isActive
() {
return
0; }
29
TSQLConnection
*
getConnection
();
30
31
static
int
Register
(
const
std::string
&dbname =
"calibrations"
);
32
static
int
releaseConnection
();
33
static
PgPostApplication
*
instance
();
34
int
setDBName
(
const
std::string
&
name
);
35
int
DisconnectDB
();
36
37
protected
:
38
static
TSQLConnection
*
con
;
39
static
PgPostApplication
*
mySpecificCopy
;
40
bool
readOnly
;
41
std::string
dsn
;
42
};
43
44
#endif
/* PDBCAL_PG_PGPOSTAPPLICATION_H */
coresoftware
blob
master
offline
database
pdbcal
pg
PgPostApplication.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:04
using
1.8.2 with
sPHENIX GitHub integration