#include <FWJobMetadataManager.h>
Classes | |
struct | Data |
Public Member Functions | |
FWJobMetadataManager () | |
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< Data > | m_metadata |
std::vector< std::string > | m_processNamesInJob |
FWTypeToRepresentations * | m_typeAndReps |
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.
FWJobMetadataManager::FWJobMetadataManager | ( | void | ) |
Definition at line 5 of file FWJobMetadataManager.cc.
: m_typeAndReps(0) {}
FWJobMetadataManager::~FWJobMetadataManager | ( | ) | [virtual] |
Definition at line 9 of file FWJobMetadataManager.cc.
{}
virtual bool FWJobMetadataManager::doUpdate | ( | FWJobMetadataUpdateRequest * | ) | [protected, pure virtual] |
This is the bit that needs to be implemented by a derived class to update the various metadata structures.
Implemented in FWLiteJobMetadataManager, and FWFFMetadataManager.
Referenced by update().
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().
{ delete m_typeAndReps; m_typeAndReps = new FWTypeToRepresentations(iTypeAndReps); }
std::vector<std::string>& FWJobMetadataManager::processNamesInJob | ( | ) | [inline] |
Definition at line 34 of file FWJobMetadataManager.h.
References m_processNamesInJob.
Referenced by FWLiteJobMetadataManager::doUpdate(), CmsShowNavigator::getProcessList(), and FWGUIEventDataAdder::newIndexSelected().
{ return m_processNamesInJob; }
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_.
{ std::auto_ptr<FWJobMetadataUpdateRequest> ptr(request); if (doUpdate(request)) metadataChanged_(); }
std::vector<Data>& FWJobMetadataManager::usableData | ( | ) | [inline] |
Definition at line 33 of file FWJobMetadataManager.h.
References m_metadata.
Referenced by DataAdderTableManager::cellRenderer(), FWLiteJobMetadataManager::doUpdate(), FWFFMetadataManager::doUpdate(), DataAdderTableManager::implSort(), FWGUIEventDataAdder::newIndexSelected(), and DataAdderTableManager::reset().
{ return m_metadata; }
std::vector<Data> FWJobMetadataManager::m_metadata [protected] |
Definition at line 61 of file FWJobMetadataManager.h.
Referenced by usableData().
std::vector<std::string> FWJobMetadataManager::m_processNamesInJob [protected] |
Definition at line 62 of file FWJobMetadataManager.h.
Referenced by processNamesInJob().
Definition at line 63 of file FWJobMetadataManager.h.
Referenced by FWLiteJobMetadataManager::doUpdate(), FWFFMetadataManager::doUpdate(), and initReps().
sigc::signal<void> FWJobMetadataManager::metadataChanged_ |
Definition at line 53 of file FWJobMetadataManager.h.
Referenced by FWGUIEventDataAdder::FWGUIEventDataAdder(), and update().