EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/parbase/dbIO/FairParTSQLIo.h>
Public Member Functions | |
FairParTSQLIo () | |
FairParTSQLIo (FairDbMultConnector const &cons, int const dbNum=-1) | |
virtual | ~FairParTSQLIo () |
void | disconnect () |
void | setDetParIo (Text_t *io) |
bool | check () |
bool | open () |
void | print () |
void | SetDefaultDBNum (int const dbNum) |
int | GetDefaultDBNum () const |
FairDbMultConnector const & | GetConnections () const |
Public Member Functions inherited from FairParIo | |
FairParIo () | |
virtual | ~FairParIo () |
virtual FairDetParIo * | getDetParIo (const Text_t *) |
virtual void | setDetParIo (FairDetParIo *) |
virtual void | removeDetParIo (Text_t *) |
void | setInputNumber (Int_t) |
virtual void | close () |
const char * | getFilename () |
virtual void | readVersions (FairRtdbRun *) |
virtual void | cd () |
void | setAutoWritable (Bool_t f=kTRUE) |
Bool_t | isAutoWritable () |
Protected Member Functions | |
bool | activateDetIo () |
Private Member Functions | |
FairParTSQLIo (FairParTSQLIo const &ot) | |
FairParTSQLIo & | operator= (FairParTSQLIo const &ot) |
Private Attributes | |
int | fDefaultDb |
FairDbMultConnector * | fConnections |
Additional Inherited Members | |
Protected Attributes inherited from FairParIo | |
TList * | detParIoList |
Bool_t | autoWritable |
TString | filename |
Definition at line 22 of file FairParTSQLIo.h.
View newest version in sPHENIX GitHub at line 22 of file FairParTSQLIo.h
FairParTSQLIo::FairParTSQLIo | ( | ) |
Default constructor.
FairParTSQLIo::FairParTSQLIo | ( | FairDbMultConnector const & | cons, |
int const | dbNum = -1 |
||
) |
cons | FairDbMultConnector which holds a number of initialized db connections. |
dbNum | The db which is selected to act as the master for the current operations. Note: A new FairDbConnection object is created (to keep the ownership). |
cons | FairDbMultConnector which holds a number of initialized db connections. |
dbNum | The number of the db which is selected to act as the master for the current operations. |
Definition at line 31 of file FairParTSQLIo.cxx.
View newest version in sPHENIX GitHub at line 31 of file FairParTSQLIo.cxx
|
virtual |
Destructor
Definition at line 42 of file FairParTSQLIo.cxx.
View newest version in sPHENIX GitHub at line 42 of file FairParTSQLIo.cxx
References disconnect().
|
private |
|
protected |
Definition at line 104 of file FairParTSQLIo.cxx.
View newest version in sPHENIX GitHub at line 104 of file FairParTSQLIo.cxx
References FairParIo::detParIoList, and fConnections.
Referenced by open().
|
virtual |
Check if at least one connection is alive.
Reimplemented from FairParIo.
Definition at line 50 of file FairParTSQLIo.cxx.
View newest version in sPHENIX GitHub at line 50 of file FairParTSQLIo.cxx
References Acts::Test::db, fConnections, fDefaultDb, FairDbMultConnector::GetNumDb(), FairDbMultConnector::GetStatus(), FairDbMultConnector::kClosed, and FairDbMultConnector::kFailed.
void FairParTSQLIo::disconnect | ( | ) |
Destroy the connection.
Definition at line 93 of file FairParTSQLIo.cxx.
View newest version in sPHENIX GitHub at line 93 of file FairParTSQLIo.cxx
References fConnections, and FairDbMultConnector::GetStatusAsString().
Referenced by ~FairParTSQLIo().
|
inline |
Get the connection object.
Definition at line 109 of file FairParTSQLIo.h.
View newest version in sPHENIX GitHub at line 109 of file FairParTSQLIo.h
References fConnections.
|
inline |
Definition at line 119 of file FairParTSQLIo.h.
View newest version in sPHENIX GitHub at line 119 of file FairParTSQLIo.h
References fDefaultDb.
bool FairParTSQLIo::open | ( | ) |
If connection exist to at least on of the specified databases, then activate IO and return true.
Definition at line 121 of file FairParTSQLIo.cxx.
View newest version in sPHENIX GitHub at line 121 of file FairParTSQLIo.cxx
References activateDetIo().
|
private |
|
virtual |
Print some info. This function maybe removed in future.
Reimplemented from FairParIo.
Definition at line 130 of file FairParTSQLIo.cxx.
View newest version in sPHENIX GitHub at line 130 of file FairParTSQLIo.cxx
References FairParIo::detParIoList, fConnections, and FairDbMultConnector::GetNumDb().
|
inline |
Set which database connection is going to be the default.
dbNum | The default database identification number. |
Definition at line 114 of file FairParTSQLIo.h.
View newest version in sPHENIX GitHub at line 114 of file FairParTSQLIo.h
References fDefaultDb.
|
virtual |
creates the specified I/O.
io | The name of IO to be created/added in the IO list. |
creates the specified I/O.
ioName | The name of IO to be created/added in the IO list. |
Reimplemented from FairParIo.
Definition at line 74 of file FairParTSQLIo.cxx.
View newest version in sPHENIX GitHub at line 74 of file FairParTSQLIo.cxx
References FairParIo::detParIoList, and fConnections.
|
private |
Actual connection set
Definition at line 102 of file FairParTSQLIo.h.
View newest version in sPHENIX GitHub at line 102 of file FairParTSQLIo.h
Referenced by activateDetIo(), check(), disconnect(), GetConnections(), print(), and setDetParIo().
|
private |
The default Database connection.
Definition at line 101 of file FairParTSQLIo.h.
View newest version in sPHENIX GitHub at line 101 of file FairParTSQLIo.h
Referenced by check(), GetDefaultDBNum(), and SetDefaultDBNum().