CMS 3D CMS Logo

RunForOutput.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_RunForOutput_h
2 #define FWCore_Framework_RunForOutput_h
3 
4 // -*- C++ -*-
5 //
6 // Package: Framework
7 // Class : RunForOutput
8 //
16 /*----------------------------------------------------------------------
17 
18 ----------------------------------------------------------------------*/
19 
25 
26 #include <memory>
27 #include <string>
28 #include <typeinfo>
29 #include <vector>
30 
31 namespace edmtest {
32  class TestOutputModule;
33 }
34 
35 namespace edm {
36  class ModuleCallingContext;
37 
39  public:
40  RunForOutput(RunPrincipal const& rp, ModuleDescription const& md,
41  ModuleCallingContext const*);
42  ~RunForOutput();
43 
44  RunAuxiliary const& runAuxiliary() const {return aux_;}
45  RunID const& id() const {return aux_.id();}
46  RunNumber_t run() const {return aux_.run();}
47  Timestamp const& beginTime() const {return aux_.beginTime();}
48  Timestamp const& endTime() const {return aux_.endTime();}
49 
50  private:
51  friend class edmtest::TestOutputModule; // For testing
52 
53  RunPrincipal const&
54  runPrincipal() const;
55 
57 
58  static const std::string emptyString_;
59  };
60 }
61 #endif
Timestamp const & endTime() const
Definition: RunForOutput.h:48
RunID const & id() const
Definition: RunForOutput.h:45
Timestamp const & beginTime() const
Definition: RunForOutput.h:47
static const std::string emptyString_
Definition: RunForOutput.h:58
RunAuxiliary const & aux_
Definition: RunForOutput.h:56
RunAuxiliary const & runAuxiliary() const
Definition: RunForOutput.h:44
HLT enums.
unsigned int RunNumber_t
RunNumber_t run() const
Definition: RunForOutput.h:46