CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cond::persistency::RunInfoSchema Class Reference

#include <RunInfoSchema.h>

Inheritance diagram for cond::persistency::RunInfoSchema:
cond::persistency::IRunInfoSchema

Public Member Functions

bool create () override
 
bool exists () override
 
 RunInfoSchema (coral::ISchema &schema)
 
IRunInfoTablerunInfoTable () override
 
 ~RunInfoSchema () override
 
- Public Member Functions inherited from cond::persistency::IRunInfoSchema
virtual ~IRunInfoSchema ()
 

Private Attributes

RUN_INFO::Table m_runInfoTable
 

Detailed Description

Definition at line 69 of file RunInfoSchema.h.

Constructor & Destructor Documentation

◆ RunInfoSchema()

cond::persistency::RunInfoSchema::RunInfoSchema ( coral::ISchema &  schema)
explicit

Definition at line 119 of file RunInfoSchema.cc.

119 : m_runInfoTable(schema) {}

◆ ~RunInfoSchema()

cond::persistency::RunInfoSchema::~RunInfoSchema ( )
inlineoverride

Definition at line 72 of file RunInfoSchema.h.

72 {}

Member Function Documentation

◆ create()

bool cond::persistency::RunInfoSchema::create ( )
overridevirtual

Implements cond::persistency::IRunInfoSchema.

Definition at line 127 of file RunInfoSchema.cc.

127  {
128  bool created = false;
129  if (!exists()) {
131  created = true;
132  }
133  return created;
134  }

References cond::persistency::RUN_INFO::Table::create(), exists(), and m_runInfoTable.

Referenced by o2olib.O2OTool::execute().

◆ exists()

bool cond::persistency::RunInfoSchema::exists ( )
overridevirtual

Implements cond::persistency::IRunInfoSchema.

Definition at line 121 of file RunInfoSchema.cc.

121  {
122  if (!m_runInfoTable.exists())
123  return false;
124  return true;
125  }

References cond::persistency::RUN_INFO::Table::exists(), and m_runInfoTable.

Referenced by create().

◆ runInfoTable()

IRunInfoTable & cond::persistency::RunInfoSchema::runInfoTable ( )
overridevirtual

Implements cond::persistency::IRunInfoSchema.

Definition at line 136 of file RunInfoSchema.cc.

136 { return m_runInfoTable; }

References m_runInfoTable.

Member Data Documentation

◆ m_runInfoTable

RUN_INFO::Table cond::persistency::RunInfoSchema::m_runInfoTable
private

Definition at line 78 of file RunInfoSchema.h.

Referenced by create(), exists(), and runInfoTable().

cond::persistency::RunInfoSchema::exists
bool exists() override
Definition: RunInfoSchema.cc:121
cond::persistency::RUN_INFO::Table::create
void create() override
Definition: RunInfoSchema.cc:14
cond::persistency::RunInfoSchema::m_runInfoTable
RUN_INFO::Table m_runInfoTable
Definition: RunInfoSchema.h:78
cond::persistency::RUN_INFO::Table::exists
bool exists() override