00001 #include "Fireworks/Core/interface/FWJobMetadataManager.h" 00002 #include "Fireworks/Core/interface/FWJobMetadataUpdateRequest.h" 00003 #include <memory> 00004 00005 FWJobMetadataManager::FWJobMetadataManager(void) 00006 : m_typeAndReps(0) 00007 {} 00008 00009 FWJobMetadataManager::~FWJobMetadataManager() 00010 {} 00011 00022 void 00023 FWJobMetadataManager::update(FWJobMetadataUpdateRequest *request) 00024 { 00025 std::auto_ptr<FWJobMetadataUpdateRequest> ptr(request); 00026 if (doUpdate(request)) 00027 metadataChanged_(); 00028 } 00029 00030 void 00031 FWJobMetadataManager::initReps(const FWTypeToRepresentations& iTypeAndReps) 00032 { 00033 delete m_typeAndReps; 00034 m_typeAndReps = new FWTypeToRepresentations(iTypeAndReps); 00035 }