CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
FWJobMetadataManager Class Referenceabstract

#include <FWJobMetadataManager.h>

Inheritance diagram for FWJobMetadataManager:
FWFFMetadataManager FWLiteJobMetadataManager

Classes

struct  Data
 

Public Member Functions

 FWJobMetadataManager ()
 
virtual bool hasModuleLabel (std::string &moduleLabel)=0
 
void initReps (const FWTypeToRepresentations &iTypeAndReps)
 
std::vector< std::string > & processNamesInJob ()
 
void update (FWJobMetadataUpdateRequest *request)
 
std::vector< Data > & usableData ()
 
virtual ~FWJobMetadataManager ()
 

Public Attributes

sigc::signal< void > metadataChanged_
 

Protected Member Functions

virtual bool doUpdate (FWJobMetadataUpdateRequest *)=0
 

Protected Attributes

std::vector< Datam_metadata
 
std::vector< std::string > m_processNamesInJob
 
FWTypeToRepresentationsm_typeAndReps
 

Detailed Description

Base class which keeps track of various job specific metadata information. fwlite and (eventually) full-framework derived implementations are where the job is actually done.

Definition at line 18 of file FWJobMetadataManager.h.

Constructor & Destructor Documentation

FWJobMetadataManager::FWJobMetadataManager ( void  )

Definition at line 5 of file FWJobMetadataManager.cc.

6  : m_typeAndReps(0)
7 {}
FWTypeToRepresentations * m_typeAndReps
FWJobMetadataManager::~FWJobMetadataManager ( )
virtual

Definition at line 9 of file FWJobMetadataManager.cc.

10 {}

Member Function Documentation

virtual bool FWJobMetadataManager::doUpdate ( FWJobMetadataUpdateRequest )
protectedpure virtual

This is the bit that needs to be implemented by a derived class to update the various metadata structures.

Returns
true if any update actually took place.

Implemented in FWFFMetadataManager, and FWLiteJobMetadataManager.

Referenced by update().

virtual bool FWJobMetadataManager::hasModuleLabel ( std::string &  moduleLabel)
pure virtual
void FWJobMetadataManager::initReps ( const FWTypeToRepresentations iTypeAndReps)

This needs to be invoked to make the metadata manager keep track of the changes in the TypeToRepresentation.

Definition at line 31 of file FWJobMetadataManager.cc.

References m_typeAndReps.

Referenced by CmsShowMainBase::setupViewManagers().

32 {
33  delete m_typeAndReps;
34  m_typeAndReps = new FWTypeToRepresentations(iTypeAndReps);
35 }
FWTypeToRepresentations * m_typeAndReps
std::vector<std::string>& FWJobMetadataManager::processNamesInJob ( )
inline
void FWJobMetadataManager::update ( FWJobMetadataUpdateRequest request)

Invoked when a given update request needs to happen. Will emit the metadataChanged_ signal when done so that observers can update accordingly.

Derived classes should implement the doUpdate() protected method to actually modify the metadata according to the request.

Notice that this method is a consumer of request object and takes ownership of the lifetime of the request objects.

Invoked when a given update request needs to happen. Will emit the metadataChanged_ signal when done so that observers can update accordingly.

Derived classes should implement the doUpdate() protected method to actually modify the metadata according to the request.

Notice that this method is a consumer of request object and takes ownership of the lifetime of the request objects.

Definition at line 23 of file FWJobMetadataManager.cc.

References doUpdate(), and metadataChanged_.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), 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().

24 {
25  std::auto_ptr<FWJobMetadataUpdateRequest> ptr(request);
26  if (doUpdate(request))
28 }
sigc::signal< void > metadataChanged_
virtual bool doUpdate(FWJobMetadataUpdateRequest *)=0
std::vector<Data>& FWJobMetadataManager::usableData ( )
inline

Member Data Documentation

std::vector<Data> FWJobMetadataManager::m_metadata
protected

Definition at line 65 of file FWJobMetadataManager.h.

Referenced by usableData().

std::vector<std::string> FWJobMetadataManager::m_processNamesInJob
protected

Definition at line 66 of file FWJobMetadataManager.h.

Referenced by processNamesInJob().

FWTypeToRepresentations* FWJobMetadataManager::m_typeAndReps
protected
sigc::signal<void> FWJobMetadataManager::metadataChanged_

Definition at line 57 of file FWJobMetadataManager.h.

Referenced by FWGUIEventDataAdder::FWGUIEventDataAdder(), and update().