CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OutputModuleCommunicator.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_OutputModuleCommunicator_h
2 #define FWCore_Framework_OutputModuleCommunicator_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : OutputModuleCommunicator
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri, 05 Jul 2013 17:36:51 GMT
19 //
20 
21 // system include files
22 #include <map>
23 #include <string>
24 #include <vector>
25 
26 // user include files
29 
30 // forward declarations
31 namespace edm {
32 
33  class ProcessContext;
34 
36  {
37 
38  public:
39  OutputModuleCommunicator() = default;
40  virtual ~OutputModuleCommunicator();
41 
42  virtual void closeFile() = 0;
43 
45  virtual bool shouldWeCloseFile() const = 0;
46 
47  virtual void openNewFileIfNeeded() = 0;
48 
50  virtual bool wantAllEvents() const = 0;
51 
52  virtual void openFile(FileBlock const& fb) = 0;
53 
54  virtual void writeRun(RunPrincipal const& rp, ProcessContext const*) = 0;
55 
56  virtual void writeLumi(LuminosityBlockPrincipal const& lbp, ProcessContext const*) = 0;
57 
59  virtual bool limitReached() const = 0;
60 
61  virtual void configure(OutputModuleDescription const& desc) = 0;
62 
63  virtual SelectedProductsForBranchType const& keptProducts() const = 0;
64 
65  virtual void selectProducts(ProductRegistry const& preg) = 0;
66 
67  virtual void setEventSelectionInfo(std::map<std::string, std::vector<std::pair<std::string, int> > > const& outputModulePathPositions,
68  bool anyProductProduced) = 0;
69 
70  virtual ModuleDescription const& description() const = 0;
71 
72  private:
73  OutputModuleCommunicator(const OutputModuleCommunicator&) = delete; // stop default
74 
75  const OutputModuleCommunicator& operator=(const OutputModuleCommunicator&) = delete; // stop default
76 
77  // ---------- member data --------------------------------
78 
79  };
80 }
81 
82 #endif
virtual void openFile(FileBlock const &fb)=0
virtual void writeRun(RunPrincipal const &rp, ProcessContext const *)=0
virtual bool wantAllEvents() const =0
virtual bool limitReached() const =0
virtual void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)=0
virtual void openNewFileIfNeeded()=0
virtual void selectProducts(ProductRegistry const &preg)=0
virtual void writeLumi(LuminosityBlockPrincipal const &lbp, ProcessContext const *)=0
virtual bool shouldWeCloseFile() const =0
const OutputModuleCommunicator & operator=(const OutputModuleCommunicator &)=delete
boost::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
virtual void configure(OutputModuleDescription const &desc)=0
virtual SelectedProductsForBranchType const & keptProducts() const =0
preg
Definition: Schedule.cc:362
virtual ModuleDescription const & description() const =0