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
pos::PixelConfig Class Reference

This class implements.. More...

#include "interface/PixelConfig.h"

Public Member Functions

void add (std::string dir, unsigned int version)
 
int find (std::string dir, unsigned int &version)
 
int update (std::string dir, unsigned int &version, unsigned int newversion)
 
std::vector< std::pair
< std::string, unsigned int > > 
versions ()
 
void write (std::ofstream &out)
 

Private Attributes

std::vector< std::pair
< std::string, unsigned int > > 
versions_
 

Detailed Description

This class implements..

A longer explanation will be placed here later

Definition at line 15 of file PixelConfig.h.

Member Function Documentation

void pos::PixelConfig::add ( std::string  dir,
unsigned int  version 
)
inline

Definition at line 25 of file PixelConfig.h.

References versions_.

Referenced by pos::PixelConfigFile::makeKey(), and pos::PixelConfigList::readfile().

25  {
26  std::pair<std::string,unsigned int> aPair(dir,version);
27  versions_.push_back(aPair);
28  }
std::vector< std::pair< std::string, unsigned int > > versions_
Definition: PixelConfig.h:63
dbl *** dir
Definition: mlp_gen.cc:35
int pos::PixelConfig::find ( std::string  dir,
unsigned int &  version 
)
inline

Definition at line 30 of file PixelConfig.h.

References first, i, and versions_.

Referenced by BeautifulSoup.Tag::_invert(), and BeautifulSoup.PageElement::insert().

30  {
31 // std::cout << "[pos::PixelConfig::find()] versions_.size() = " << versions_.size() << std::endl ;
32  for(unsigned int i=0;i<versions_.size();i++){
33 // std::cout << "Looking :"<<versions_[i].first
34 // <<" "<<versions_[i].second<<std::endl;
35  if (versions_[i].first==dir) {
36  version=versions_[i].second;
37  return 0;
38  }
39  }
40  return -1;
41  }
int i
Definition: DBlmapReader.cc:9
std::vector< std::pair< std::string, unsigned int > > versions_
Definition: PixelConfig.h:63
bool first
Definition: L1TdeRCT.cc:94
dbl *** dir
Definition: mlp_gen.cc:35
int pos::PixelConfig::update ( std::string  dir,
unsigned int &  version,
unsigned int  newversion 
)
inline

Definition at line 44 of file PixelConfig.h.

References first, i, and versions_.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), python.seqvaluedict.seqdict::__setslice__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), pos::PixelConfigList::clone(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.seqvaluedict.seqdict::extend(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

44  {
45  for(unsigned int i=0;i<versions_.size();i++){
46  //std::cout << "Looking :"<<versions_[i].first
47  // <<" "<<versions_[i].second<<std::endl;
48  if (versions_[i].first==dir) {
49  version=versions_[i].second;
50  versions_[i].second=newversion;
51  return 0;
52  }
53  }
54  return -1;
55  }
int i
Definition: DBlmapReader.cc:9
std::vector< std::pair< std::string, unsigned int > > versions_
Definition: PixelConfig.h:63
bool first
Definition: L1TdeRCT.cc:94
dbl *** dir
Definition: mlp_gen.cc:35
std::vector<std::pair<std::string,unsigned int> > pos::PixelConfig::versions ( )
inline

Definition at line 57 of file PixelConfig.h.

References versions_.

Referenced by pos::PixelConfigFile::getVersions().

57  {
58  return versions_;
59  }
std::vector< std::pair< std::string, unsigned int > > versions_
Definition: PixelConfig.h:63
void pos::PixelConfig::write ( std::ofstream &  out)
inline

Definition at line 19 of file PixelConfig.h.

References i, and versions_.

19  {
20  for (unsigned int i=0;i<versions_.size();i++){
21  out << versions_[i].first<<" "<<versions_[i].second<<std::endl;
22  }
23  }
int i
Definition: DBlmapReader.cc:9
std::vector< std::pair< std::string, unsigned int > > versions_
Definition: PixelConfig.h:63
tuple out
Definition: dbtoconf.py:99

Member Data Documentation

std::vector<std::pair<std::string,unsigned int> > pos::PixelConfig::versions_
private

Definition at line 63 of file PixelConfig.h.

Referenced by add(), find(), update(), versions(), and write().