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  {
23  std::string purpose_;
24  std::string type_;
25  std::string moduleLabel_;
26  std::string productInstanceLabel_;
27  std::string processName_;
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  sigc::signal<void> metadataChanged_;
54 protected:
60  virtual bool doUpdate(FWJobMetadataUpdateRequest *) = 0;
61  std::vector<Data> m_metadata;
62  std::vector<std::string> m_processNamesInJob;
64 };
65 
66 #endif
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