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

void create ()
 
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 156 of file OraDbSchema.h.

Constructor & Destructor Documentation

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

Definition at line 354 of file OraDbSchema.cc.

354  :
355  m_session( session ){
356  }
virtual cond::persistency::OraGTMapTable::~OraGTMapTable ( )
inlinevirtual

Definition at line 159 of file OraDbSchema.h.

159 {}

Member Function Documentation

void cond::persistency::OraGTMapTable::create ( )
inlinevirtual

Implements cond::persistency::IGTMapTable.

Definition at line 160 of file OraDbSchema.h.

160 {}
bool cond::persistency::OraGTMapTable::exists ( )
inlinevirtual

Implements cond::persistency::IGTMapTable.

Definition at line 161 of file OraDbSchema.h.

161  {
162  return true;
163  }
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 377 of file OraDbSchema.cc.

Referenced by BeautifulSoup.PageElement::_invert().

377  {
378  // not supported...
379  }
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 362 of file OraDbSchema.cc.

References i, visualization-live-secondInstance_cfg::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().

363  {
364  std::set<cond::TagMetadata> tmp;
365  cond::TagCollectionRetriever gtRetriever( m_session, preFix, postFix );
366  if(!gtRetriever.selectTagCollection( gtName, tmp ) ) return false;
367  if( tmp.size() ) tags.resize( tmp.size() );
368  size_t i = 0;
369  for( const auto& m : tmp ){
370  std::string tagFullName = m.tag+"@["+m.pfn+"]";
371  tags[ i ] = std::make_tuple( m.recordname, m.labelname, tagFullName );
372  i++;
373  }
374  return true;
375  }
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 169 of file OraDbSchema.h.

Referenced by select().