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 142 of file OraDbSchema.h.

Constructor & Destructor Documentation

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

Definition at line 292 of file OraDbSchema.cc.

292  :
293  m_session( session ){
294  }
virtual cond::persistency::OraGTMapTable::~OraGTMapTable ( )
inlinevirtual

Definition at line 145 of file OraDbSchema.h.

145 {}

Member Function Documentation

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

Implements cond::persistency::IGTMapTable.

Definition at line 146 of file OraDbSchema.h.

146  {
147  return true;
148  }
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 315 of file OraDbSchema.cc.

Referenced by BeautifulSoup.PageElement::_invert().

315  {
316  // not supported...
317  }
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 300 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().

301  {
302  std::set<cond::TagMetadata> tmp;
303  cond::TagCollectionRetriever gtRetriever( m_session, preFix, postFix );
304  if(!gtRetriever.selectTagCollection( gtName, tmp ) ) return false;
305  if( tmp.size() ) tags.resize( tmp.size() );
306  size_t i = 0;
307  for( const auto& m : tmp ){
308  std::string tagFullName = m.tag+"@["+m.pfn+"]";
309  tags[ i ] = std::make_tuple( m.recordname, m.labelname, tagFullName );
310  i++;
311  }
312  return true;
313  }
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 154 of file OraDbSchema.h.

Referenced by select().