CMS 3D CMS Logo

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 20 of file PixelConfig.h.

Member Function Documentation

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

Definition at line 30 of file PixelConfig.h.

References versions_.

Referenced by pos::PixelConfigFile::makeKey(), pos::PixelConfigList::readfile(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

30  {
31  std::pair<std::string,unsigned int> aPair(dir,version);
32  versions_.push_back(aPair);
33  }
std::vector< std::pair< std::string, unsigned int > > versions_
Definition: PixelConfig.h:68
dbl *** dir
Definition: mlp_gen.cc:35
int pos::PixelConfig::find ( std::string  dir,
unsigned int &  version 
)
inline

Definition at line 35 of file PixelConfig.h.

References plotBeamSpotDB::first, mps_fire::i, and versions_.

Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().

35  {
36 // std::cout << "[pos::PixelConfig::find()] versions_.size() = " << versions_.size() << std::endl ;
37  for(unsigned int i=0;i<versions_.size();i++){
38 // std::cout << "Looking :"<<versions_[i].first
39 // <<" "<<versions_[i].second<<std::endl;
40  if (versions_[i].first==dir) {
41  version=versions_[i].second;
42  return 0;
43  }
44  }
45  return -1;
46  }
std::vector< std::pair< std::string, unsigned int > > versions_
Definition: PixelConfig.h:68
dbl *** dir
Definition: mlp_gen.cc:35
int pos::PixelConfig::update ( std::string  dir,
unsigned int &  version,
unsigned int  newversion 
)
inline

Definition at line 49 of file PixelConfig.h.

References plotBeamSpotDB::first, mps_fire::i, and versions_.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), 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(), dqm-mbProfile.Profile::finish(), 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(), MatrixUtil.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().

49  {
50  for(unsigned int i=0;i<versions_.size();i++){
51  //std::cout << "Looking :"<<versions_[i].first
52  // <<" "<<versions_[i].second<<std::endl;
53  if (versions_[i].first==dir) {
54  version=versions_[i].second;
55  versions_[i].second=newversion;
56  return 0;
57  }
58  }
59  return -1;
60  }
std::vector< std::pair< std::string, unsigned int > > versions_
Definition: PixelConfig.h:68
dbl *** dir
Definition: mlp_gen.cc:35
std::vector<std::pair<std::string,unsigned int> > pos::PixelConfig::versions ( )
inline

Definition at line 62 of file PixelConfig.h.

References versions_.

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

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

Definition at line 24 of file PixelConfig.h.

References mps_fire::i, and versions_.

Referenced by pkg.AbstractPkg::generate(), and querying.connection::write_and_commit().

24  {
25  for (unsigned int i=0;i<versions_.size();i++){
26  out << versions_[i].first<<" "<<versions_[i].second<<std::endl;
27  }
28  }
std::vector< std::pair< std::string, unsigned int > > versions_
Definition: PixelConfig.h:68

Member Data Documentation

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

Definition at line 68 of file PixelConfig.h.

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