ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
TrigConf::AutoDBOpen Class Reference

#include <TrigConfCoolWriter.h>

Collaboration diagram for TrigConf::AutoDBOpen:

Public Member Functions

 AutoDBOpen (TrigConfCoolWriter *writer, bool readOnly)
 
 ~AutoDBOpen ()
 

Public Attributes

TrigConfCoolWriterm_writer
 
bool m_neededToOpen
 
bool m_ro
 

Detailed Description

Definition at line 84 of file TrigConfCoolWriter.h.

Constructor & Destructor Documentation

◆ AutoDBOpen()

AutoDBOpen::AutoDBOpen ( TrigConfCoolWriter writer,
bool  readOnly 
)

Definition at line 64 of file TrigConfCoolWriter.cxx.

64  :
66  m_neededToOpen(false),
67  m_ro(readOnly)
68 {
69  if(m_writer->dbIsOpen()) {
70  m_neededToOpen = false;
71  } else {
73  m_neededToOpen = true;
74  }
75 }

◆ ~AutoDBOpen()

AutoDBOpen::~AutoDBOpen ( )

Definition at line 77 of file TrigConfCoolWriter.cxx.

77  {
78  if(m_neededToOpen)
79  m_writer->closeDb();
80 }

Member Data Documentation

◆ m_neededToOpen

bool TrigConf::AutoDBOpen::m_neededToOpen

Definition at line 89 of file TrigConfCoolWriter.h.

◆ m_ro

bool TrigConf::AutoDBOpen::m_ro

Definition at line 90 of file TrigConfCoolWriter.h.

◆ m_writer

TrigConfCoolWriter* TrigConf::AutoDBOpen::m_writer

Definition at line 88 of file TrigConfCoolWriter.h.


The documentation for this class was generated from the following files:
TrigConf::AutoDBOpen::m_neededToOpen
bool m_neededToOpen
Definition: TrigConfCoolWriter.h:89
TrigConf::TrigConfCoolWriter::dbIsOpen
bool dbIsOpen()
check if db is open
Definition: TrigConfCoolWriter.cxx:100
TrigConf::TrigConfCoolWriter::closeDb
void closeDb(cool::IDatabasePtr &db)
close the COOL database
Definition: TrigConfCoolWriter.cxx:140
TrigConf::AutoDBOpen::m_ro
bool m_ro
Definition: TrigConfCoolWriter.h:90
TrigConf::AutoDBOpen::m_writer
TrigConfCoolWriter * m_writer
Definition: TrigConfCoolWriter.h:88
TrigConf::TrigConfCoolWriter::openDb
cool::IDatabasePtr openDb(bool readOnly=true)
open COOL db connection
Definition: TrigConfCoolWriter.cxx:109
example.writer
writer
show summary of content
Definition: example.py:36