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

Constructor & Destructor Documentation

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

Definition at line 313 of file OraDbSchema.cc.

313  :
314  m_session( session ){
315  }
virtual cond::persistency::OraGTMapTable::~OraGTMapTable ( )
inlinevirtual

Definition at line 154 of file OraDbSchema.h.

154 {}

Member Function Documentation

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

Implements cond::persistency::IGTMapTable.

Definition at line 155 of file OraDbSchema.h.

155  {
156  return true;
157  }
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 336 of file OraDbSchema.cc.

Referenced by BeautifulSoup.PageElement::_invert().

336  {
337  // not supported...
338  }
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 321 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().

322  {
323  std::set<cond::TagMetadata> tmp;
324  cond::TagCollectionRetriever gtRetriever( m_session, preFix, postFix );
325  if(!gtRetriever.selectTagCollection( gtName, tmp ) ) return false;
326  if( tmp.size() ) tags.resize( tmp.size() );
327  size_t i = 0;
328  for( const auto& m : tmp ){
329  std::string tagFullName = m.tag+"@["+m.pfn+"]";
330  tags[ i ] = std::make_tuple( m.recordname, m.labelname, tagFullName );
331  i++;
332  }
333  return true;
334  }
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 163 of file OraDbSchema.h.

Referenced by select().