/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Fireworks/Core/src/FWJobMetadataManager.cc
28 строк
1 KB
Cms Build
Clang-Format
20 май 2019, 13:07
20 май 2019, 13:07
6684288
Код
Авторство
О чём код?
#include "Fireworks/Core/interface/FWJobMetadataManager.h" #include "Fireworks/Core/interface/FWJobMetadataUpdateRequest.h" #include <memory> FWJobMetadataManager::FWJobMetadataManager(void) : m_typeAndReps(nullptr) {} FWJobMetadataManager::~FWJobMetadataManager() {} /** 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 @a request objects. */ void FWJobMetadataManager::update(FWJobMetadataUpdateRequest* request) { std::unique_ptr<FWJobMetadataUpdateRequest> ptr(request); if (doUpdate(request)) metadataChanged_(); } void FWJobMetadataManager::initReps(const FWTypeToRepresentations& iTypeAndReps) { delete m_typeAndReps; m_typeAndReps = new FWTypeToRepresentations(iTypeAndReps); }