CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
26 
27 #include <memory>
28 #include <string>
29 #include <typeinfo>
30 #include <vector>
31 
32 namespace edmtest {
33  class TestOutputModule;
34 }
35 
36 namespace edm {
37  class MergeableRunProductMetadata;
38  class ModuleCallingContext;
39 
41  public:
43  ModuleDescription const&,
44  ModuleCallingContext const*,
45  bool isAtEnd,
46  MergeableRunProductMetadata const* = nullptr);
48  ModuleDescription const&,
49  ModuleCallingContext const*,
50  bool isAtEnd,
51  MergeableRunProductMetadata const* = nullptr);
52  ~RunForOutput() override;
53 
54  RunAuxiliary const& runAuxiliary() const { return aux_; }
55  RunID const& id() const { return aux_.id(); }
56  RunNumber_t run() const { return aux_.run(); }
57  Timestamp const& beginTime() const { return aux_.beginTime(); }
58  Timestamp const& endTime() const { return aux_.endTime(); }
60 
63  RunIndex index() const;
64 
65  private:
66  friend class edmtest::TestOutputModule; // For testing
67 
68  RunPrincipal const& runPrincipal() const;
69 
71 
73 
74  static const std::string emptyString_;
75  };
76 } // namespace edm
77 #endif
RunPrincipal const & runPrincipal() const
Definition: RunForOutput.cc:28
Timestamp const & endTime() const
Definition: RunForOutput.h:58
RunIndex index() const
Definition: RunForOutput.cc:32
RunID const & id() const
Definition: RunForOutput.h:55
Timestamp const & endTime() const
Definition: RunAuxiliary.h:30
Timestamp const & beginTime() const
Definition: RunForOutput.h:57
RunID const & id() const
Definition: RunAuxiliary.h:27
Timestamp const & beginTime() const
Definition: RunAuxiliary.h:29
friend class edmtest::TestOutputModule
Definition: RunForOutput.h:66
static const std::string emptyString_
Definition: RunForOutput.h:74
MergeableRunProductMetadata const * mergeableRunProductMetadata_
Definition: RunForOutput.h:72
RunAuxiliary const & aux_
Definition: RunForOutput.h:70
RunAuxiliary const & runAuxiliary() const
Definition: RunForOutput.h:54
RunForOutput(RunTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd, MergeableRunProductMetadata const *=nullptr)
Definition: RunForOutput.cc:10
unsigned int RunNumber_t
MergeableRunProductMetadata const * mergeableRunProductMetadata() const
Definition: RunForOutput.h:59
~RunForOutput() override
Definition: RunForOutput.cc:26
RunNumber_t run() const
Definition: RunAuxiliary.h:31
RunNumber_t run() const
Definition: RunForOutput.h:56