Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/database/pdbcal/pg/PgPostBankBackupLog.h>
Public Types | |
enum | enu_ops { kOptFailed = -1, kOptSuccess = 1, kOptNull = 0, kOptBackup2File = 10, kOptFile2Db = 20, kOptFile2Db_Skip = 21, kOptDump = 30, kOptDelete = 100 } |
Public Member Functions | |
PgPostBankBackupLog (const std::string &TableName, const std::string &Tag) | |
virtual | ~PgPostBankBackupLog () |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
void | Init () |
initialization. Always called to check connections in Log() | |
void | Log (const int rid, const enu_ops ops) |
enter one log entry | |
Protected Types | |
typedef TSQLConnection * | TSQLConnection_PTR |
Protected Attributes | |
int | verbosity |
The verbosity level. 0 means not verbose at all. | |
std::string | tablename |
std::string | tag |
TSQLPreparedStatement * | pstmt |
Static Protected Attributes | |
static TSQLConnection_PTR | con |
Definition at line 24 of file PgPostBankBackupLog.h.
View newest version in sPHENIX GitHub at line 24 of file PgPostBankBackupLog.h
|
protected |
Definition at line 80 of file PgPostBankBackupLog.h.
View newest version in sPHENIX GitHub at line 80 of file PgPostBankBackupLog.h
kOptFailed |
kOptFailed can be multiplied to other operations to flag a failure |
kOptSuccess |
positive value means fine |
kOptNull | |
kOptBackup2File | |
kOptFile2Db | |
kOptFile2Db_Skip | |
kOptDump | |
kOptDelete |
Definition at line 45 of file PgPostBankBackupLog.h.
View newest version in sPHENIX GitHub at line 45 of file PgPostBankBackupLog.h
PgPostBankBackupLog::PgPostBankBackupLog | ( | const std::string & | TableName, |
const std::string & | Tag | ||
) |
Definition at line 22 of file PgPostBankBackupLog.cc.
View newest version in sPHENIX GitHub at line 22 of file PgPostBankBackupLog.cc
|
virtual |
Definition at line 31 of file PgPostBankBackupLog.cc.
View newest version in sPHENIX GitHub at line 31 of file PgPostBankBackupLog.cc
void PgPostBankBackupLog::Init | ( | ) |
initialization. Always called to check connections in Log()
Definition at line 35 of file PgPostBankBackupLog.cc.
View newest version in sPHENIX GitHub at line 35 of file PgPostBankBackupLog.cc
References assert, con, Acts::UnitConstants::e, TSQLDriverManager::GetConnection(), gSQLDriverManager, TSQLConnection::PrepareStatement(), pstmt, tablename, tag, and Verbosity().
Referenced by PgPostBankBackupManager::CleanTable(), PgPostBankBackupManager::dumpTable(), PgPostBankBackupManager::fetchAllBank2TFile(), and Log().
void PgPostBankBackupLog::Log | ( | const int | rid, |
const enu_ops | ops | ||
) |
enter one log entry
Definition at line 85 of file PgPostBankBackupLog.cc.
View newest version in sPHENIX GitHub at line 85 of file PgPostBankBackupLog.cc
References assert, TSQLConnection::Commit(), con, Acts::UnitConstants::e, TSQLStatement::ExecuteUpdate(), TSQLException::GetMessage(), Init(), pstmt, TSQLPreparedStatement::SetInt(), tablename, tag, and Verbosity().
Referenced by PgPostBankBackupManager::CleanTable(), PgPostBankBackupManager::dumpTable(), and PgPostBankBackupManager::fetchAllBank2TFile().
|
inlinevirtual |
Sets the verbosity of this module (0 by default=quiet).
Definition at line 33 of file PgPostBankBackupLog.h.
View newest version in sPHENIX GitHub at line 33 of file PgPostBankBackupLog.h
References verbosity.
|
inlinevirtual |
Gets the verbosity of this module.
Definition at line 40 of file PgPostBankBackupLog.h.
View newest version in sPHENIX GitHub at line 40 of file PgPostBankBackupLog.h
References verbosity.
Referenced by Init(), and Log().
|
staticprotected |
Definition at line 81 of file PgPostBankBackupLog.h.
View newest version in sPHENIX GitHub at line 81 of file PgPostBankBackupLog.h
|
protected |
Definition at line 86 of file PgPostBankBackupLog.h.
View newest version in sPHENIX GitHub at line 86 of file PgPostBankBackupLog.h
|
protected |
Definition at line 83 of file PgPostBankBackupLog.h.
View newest version in sPHENIX GitHub at line 83 of file PgPostBankBackupLog.h
|
protected |
Definition at line 84 of file PgPostBankBackupLog.h.
View newest version in sPHENIX GitHub at line 84 of file PgPostBankBackupLog.h
|
protected |
The verbosity level. 0 means not verbose at all.
Definition at line 78 of file PgPostBankBackupLog.h.
View newest version in sPHENIX GitHub at line 78 of file PgPostBankBackupLog.h
Referenced by Verbosity().