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 293 of file OraDbSchema.cc.

293  :
294  m_session( session ){
295  }
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 316 of file OraDbSchema.cc.

Referenced by BeautifulSoup.PageElement::_invert().

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

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