CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 {
20 public:
21  struct Data
22  {
28  };
29 
31  virtual ~FWJobMetadataManager();
32 
33  std::vector<Data> &usableData() { return m_metadata; }
34  std::vector<std::string> &processNamesInJob() { return m_processNamesInJob; }
35 
46  void update(FWJobMetadataUpdateRequest *request);
47 
51  void initReps(const FWTypeToRepresentations& iTypeAndReps);
52 
53  // needed by FWDetailViewManager
54  virtual bool hasModuleLabel(std::string& moduleLabel) = 0;
55 
56 
57  sigc::signal<void> metadataChanged_;
58 protected:
64  virtual bool doUpdate(FWJobMetadataUpdateRequest *) = 0;
65  std::vector<Data> m_metadata;
66  std::vector<std::string> m_processNamesInJob;
68 };
69 
70 #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