CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 119 of file RunInfoSchema.cc.

119 : m_runInfoTable(schema) {}
cond::persistency::RunInfoSchema::~RunInfoSchema ( )
inlineoverride

Definition at line 72 of file RunInfoSchema.h.

72 {}

Member Function Documentation

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

Implements cond::persistency::IRunInfoSchema.

Definition at line 127 of file RunInfoSchema.cc.

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

Referenced by o2olib.O2OTool::execute().

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

Implements cond::persistency::IRunInfoSchema.

Definition at line 121 of file RunInfoSchema.cc.

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

Referenced by create().

121  {
122  if (!m_runInfoTable.exists())
123  return false;
124  return true;
125  }
IRunInfoTable & cond::persistency::RunInfoSchema::runInfoTable ( )
overridevirtual

Implements cond::persistency::IRunInfoSchema.

Definition at line 136 of file RunInfoSchema.cc.

References m_runInfoTable.

136 { return m_runInfoTable; }

Member Data Documentation

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

Definition at line 78 of file RunInfoSchema.h.

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