Definition at line 41 of file MakeReferenceFile.cxx.
◆ DbConnection() [1/2]
| DbConnection::DbConnection |
( |
const std::string & | sourceDb | ) |
|
Definition at line 58 of file MakeReferenceFile.cxx.
60{
61 bool readOnly(true);
62 const std::string dbConnectionString{sourceDb};
63 try
64 {
66 }
67 catch (std::exception &e)
68 {
69 std::cout <<
"Cool exception caught: " <<
e.what() << std::endl;
70 if (not readOnly)
71 {
72 try
73 {
74 std::cout << "creating " << dbConnectionString << std::endl;
76 }
77 catch (std::exception &e)
78 {
79 std::cout <<
"Cool exception caught: " <<
e.what() << std::endl;
80 }
81 }
82 }
84}
const cool::IDatabaseSvc & m_dbSvc
cool::IDatabasePtr m_sourceDbPtr
cool::Application m_coolapp
coral::ConnectionService m_coralsvc
◆ ~DbConnection() [1/2]
| DbConnection::~DbConnection |
( |
| ) |
|
◆ DbConnection() [2/2]
| DbConnection::DbConnection |
( |
const std::string & | sourceDb, |
|
|
const bool | isCoraCool = false ) |
Definition at line 356 of file openCoraCool.cxx.
356 :
363 bool readOnly(true);
364 const std::string dbConnectionString=
transConn(sourceDb);
365 readOnly= (dbConnectionString.find ("sqlite")==std::string::npos);
366 try {
370 }
371 catch (std::exception& e) {
372 std::cout <<
"Cool exception caught: " <<
e.what() << std::endl;
373 if (not readOnly){
374 try {
375 std::cout<<"creating "<<dbConnectionString<<std::endl;
377 } catch (std::exception& e){
378 std::cout <<
"Cool exception caught: " <<
e.what() << std::endl;
379 }
380 }
381 }
383}
boost::shared_ptr< CoraCoolDatabase > CoraCoolDatabasePtr
CoraCoolDatabasePtr m_sourceCoraPtr
std::string transConn(const std::string &inconn)
◆ ~DbConnection() [2/2]
| DbConnection::~DbConnection |
( |
| ) |
|
◆ coraCoolPtr()
◆ dbPtr() [1/2]
| cool::IDatabasePtr DbConnection::dbPtr |
( |
| ) |
const |
◆ dbPtr() [2/2]
| cool::IDatabasePtr DbConnection::dbPtr |
( |
| ) |
const |
◆ isOpen() [1/2]
| bool DbConnection::isOpen |
( |
| ) |
const |
◆ isOpen() [2/2]
| bool DbConnection::isOpen |
( |
| ) |
const |
◆ m_coolapp
| cool::Application DbConnection::m_coolapp |
|
private |
◆ m_coralsvc
| coral::ConnectionService DbConnection::m_coralsvc {} |
|
private |
◆ m_dbSvc
| const cool::IDatabaseSvc & DbConnection::m_dbSvc |
|
private |
◆ m_isOpen
| bool DbConnection::m_isOpen {} |
|
private |
◆ m_sourceCoraPtr
◆ m_sourceDbPtr
| cool::IDatabasePtr DbConnection::m_sourceDbPtr {} |
|
private |
The documentation for this class was generated from the following files: