CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
cond::persistency::OraGTMapTable Class Reference

#include <OraDbSchema.h>

Inheritance diagram for cond::persistency::OraGTMapTable:
cond::persistency::IGTMapTable

Public Member Functions

bool exists ()
 
void insert (const std::string &gtName, const std::vector< std::tuple< std::string, std::string, std::string > > &tags)
 
 OraGTMapTable (DbSession &session)
 
bool select (const std::string &gtName, std::vector< std::tuple< std::string, std::string, std::string > > &tags)
 
bool select (const std::string &gtName, const std::string &preFix, const std::string &postFix, std::vector< std::tuple< std::string, std::string, std::string > > &tags)
 
virtual ~OraGTMapTable ()
 
- Public Member Functions inherited from cond::persistency::IGTMapTable
virtual ~IGTMapTable ()
 

Private Attributes

cond::DbSession m_session
 

Detailed Description

Definition at line 153 of file OraDbSchema.h.

Constructor & Destructor Documentation

cond::persistency::OraGTMapTable::OraGTMapTable ( DbSession session)
explicit

Definition at line 342 of file OraDbSchema.cc.

342  :
343  m_session( session ){
344  }
virtual cond::persistency::OraGTMapTable::~OraGTMapTable ( )
inlinevirtual

Definition at line 156 of file OraDbSchema.h.

156 {}

Member Function Documentation

bool cond::persistency::OraGTMapTable::exists ( )
inlinevirtual

Implements cond::persistency::IGTMapTable.

Definition at line 157 of file OraDbSchema.h.

157  {
158  return true;
159  }
void cond::persistency::OraGTMapTable::insert ( const std::string &  gtName,
const std::vector< std::tuple< std::string, std::string, std::string > > &  tags 
)
virtual

Implements cond::persistency::IGTMapTable.

Definition at line 365 of file OraDbSchema.cc.

Referenced by BeautifulSoup.PageElement::_invert().

365  {
366  // not supported...
367  }
bool cond::persistency::OraGTMapTable::select ( const std::string &  gtName,
std::vector< std::tuple< std::string, std::string, std::string > > &  tags 
)
virtual
bool cond::persistency::OraGTMapTable::select ( const std::string &  gtName,
const std::string &  preFix,
const std::string &  postFix,
std::vector< std::tuple< std::string, std::string, std::string > > &  tags 
)
virtual

Implements cond::persistency::IGTMapTable.

Definition at line 350 of file OraDbSchema.cc.

References i, m, m_session, cond::TagCollectionRetriever::selectTagCollection(), AlCaHLTBitMon_QueryRunRegistry::string, o2o::tags, and tmp.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), and Vispa.Views.AbstractView.AbstractView::restoreSelection().

351  {
352  std::set<cond::TagMetadata> tmp;
353  cond::TagCollectionRetriever gtRetriever( m_session, preFix, postFix );
354  if(!gtRetriever.selectTagCollection( gtName, tmp ) ) return false;
355  if( tmp.size() ) tags.resize( tmp.size() );
356  size_t i = 0;
357  for( const auto& m : tmp ){
358  std::string tagFullName = m.tag+"@["+m.pfn+"]";
359  tags[ i ] = std::make_tuple( m.recordname, m.labelname, tagFullName );
360  i++;
361  }
362  return true;
363  }
int i
Definition: DBlmapReader.cc:9
tuple tags
Definition: o2o.py:248
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100

Member Data Documentation

cond::DbSession cond::persistency::OraGTMapTable::m_session
private

Definition at line 165 of file OraDbSchema.h.

Referenced by select().