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
PgPostBankBackupLog.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PgPostBankBackupLog.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
// $Id: PgPostBankBackupLog.hh,v 1.2 2014/05/19 17:06:23 jinhuang Exp $
4
13
#ifndef PDBCALPG_PGPOSTBANKBACKUPLOG_H
14
#define PDBCALPG_PGPOSTBANKBACKUPLOG_H
15
16
#include <string>
17
18
class
TSQLConnection
;
19
class
TSQLPreparedStatement
;
20
24
class
PgPostBankBackupLog
25
{
26
public
:
27
PgPostBankBackupLog
(
const
std::string
& TableName,
const
std::string
& Tag);
28
virtual
~PgPostBankBackupLog
();
29
30
public
:
32
virtual
void
33
Verbosity
(
const
int
ival)
34
{
35
verbosity
= ival;
36
}
37
39
virtual
int
40
Verbosity
()
const
41
{
42
return
verbosity
;
43
}
44
45
enum
enu_ops
46
{
48
kOptFailed
= -1,
50
kOptSuccess
= 1,
51
52
kOptNull
= 0,
53
55
kOptBackup2File
= 10,
56
58
kOptFile2Db
= 20,
59
kOptFile2Db_Skip
= 21,
60
62
kOptDump
= 30,
63
65
kOptDelete
= 100
66
};
67
69
void
70
Init
();
71
73
void
74
Log
(
const
int
rid,
const
enu_ops
ops);
75
76
protected
:
78
int
verbosity
;
79
80
typedef
TSQLConnection
*
TSQLConnection_PTR
;
81
static
TSQLConnection_PTR
con
;
82
83
std::string
tablename
;
84
std::string
tag
;
85
86
TSQLPreparedStatement
*
pstmt
;
87
};
88
89
#endif
/* PDBCAL_PG_PGPOSTBANKBACKUPLOG_H */
coresoftware
blob
master
offline
database
pdbcal
pg
PgPostBankBackupLog.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:04
using
1.8.2 with
sPHENIX GitHub integration