CMS 3D CMS Logo

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

#include <GTSchema.h>

Inheritance diagram for cond::persistency::GTSchema:
cond::persistency::IGTSchema

Public Member Functions

void create () override
 
bool exists () override
 
GLOBAL_TAG_MAP::TablegtMapTable () override
 
 GTSchema (coral::ISchema &schema)
 
GLOBAL_TAG::TablegtTable () override
 
 ~GTSchema () override
 
- Public Member Functions inherited from cond::persistency::IGTSchema
virtual ~IGTSchema ()
 

Private Attributes

GLOBAL_TAG_MAP::Table m_gtMapTable
 
GLOBAL_TAG::Table m_gtTable
 

Detailed Description

Definition at line 82 of file GTSchema.h.

Constructor & Destructor Documentation

◆ GTSchema()

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

Definition at line 121 of file GTSchema.cc.

121 : m_gtTable(schema), m_gtMapTable(schema) {}

◆ ~GTSchema()

cond::persistency::GTSchema::~GTSchema ( )
inlineoverride

Definition at line 85 of file GTSchema.h.

85 {}

Member Function Documentation

◆ create()

void cond::persistency::GTSchema::create ( )
overridevirtual

◆ exists()

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

Implements cond::persistency::IGTSchema.

Definition at line 123 of file GTSchema.cc.

123  {
124  if (!m_gtTable.exists())
125  return false;
126  if (!m_gtMapTable.exists())
127  return false;
128  return true;
129  }

References cond::persistency::GLOBAL_TAG::Table::exists(), cond::persistency::GLOBAL_TAG_MAP::Table::exists(), m_gtMapTable, and m_gtTable.

◆ gtMapTable()

GLOBAL_TAG_MAP::Table & cond::persistency::GTSchema::gtMapTable ( )
overridevirtual

Implements cond::persistency::IGTSchema.

Definition at line 138 of file GTSchema.cc.

138 { return m_gtMapTable; }

References m_gtMapTable.

◆ gtTable()

GLOBAL_TAG::Table & cond::persistency::GTSchema::gtTable ( )
overridevirtual

Implements cond::persistency::IGTSchema.

Definition at line 136 of file GTSchema.cc.

136 { return m_gtTable; }

References m_gtTable.

Member Data Documentation

◆ m_gtMapTable

GLOBAL_TAG_MAP::Table cond::persistency::GTSchema::m_gtMapTable
private

Definition at line 93 of file GTSchema.h.

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

◆ m_gtTable

GLOBAL_TAG::Table cond::persistency::GTSchema::m_gtTable
private

Definition at line 92 of file GTSchema.h.

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

cond::persistency::GLOBAL_TAG::Table::create
void create() override
Definition: GTSchema.cc:12
cond::persistency::GTSchema::m_gtTable
GLOBAL_TAG::Table m_gtTable
Definition: GTSchema.h:92
cond::persistency::GLOBAL_TAG::Table::exists
bool exists() override
Definition: GTSchema.cc:10
cond::persistency::GTSchema::m_gtMapTable
GLOBAL_TAG_MAP::Table m_gtMapTable
Definition: GTSchema.h:93
cond::persistency::GLOBAL_TAG_MAP::Table::create
void create() override
Definition: GTSchema.cc:82
cond::persistency::GLOBAL_TAG_MAP::Table::exists
bool exists() override
Definition: GTSchema.cc:80