CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FWJobMetadataManager.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWJobMetadataManager
2 #define Fireworks_Core_FWJobMetadataManager
3 
5 
6 #include "sigc++/signal.h"
7 
8 #include <string>
9 #include <vector>
10 
13 
19 public:
20  struct Data {
26  };
27 
29  virtual ~FWJobMetadataManager();
30 
31  std::vector<Data> &usableData() { return m_metadata; }
32  std::vector<std::string> &processNamesInJob() { return m_processNamesInJob; }
33 
44  void update(FWJobMetadataUpdateRequest *request);
45 
49  void initReps(const FWTypeToRepresentations &iTypeAndReps);
50 
51  // needed by FWDetailViewManager
52  virtual bool hasModuleLabel(std::string &moduleLabel) = 0;
53 
54  sigc::signal<void> metadataChanged_;
55 
56 protected:
62  virtual bool doUpdate(FWJobMetadataUpdateRequest *) = 0;
63  std::vector<Data> m_metadata;
64  std::vector<std::string> m_processNamesInJob;
66 };
67 
68 #endif
virtual bool hasModuleLabel(std::string &moduleLabel)=0
sigc::signal< void > metadataChanged_
std::vector< std::string > & processNamesInJob()
void initReps(const FWTypeToRepresentations &iTypeAndReps)
std::vector< Data > & usableData()
virtual bool doUpdate(FWJobMetadataUpdateRequest *)=0
FWTypeToRepresentations * m_typeAndReps
std::vector< std::string > m_processNamesInJob
void update(FWJobMetadataUpdateRequest *request)
std::vector< Data > m_metadata