WorkerParams

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#ifndef FWCore_Framework_WorkerParams_h
#define FWCore_Framework_WorkerParams_h

/** ----------------------

This struct is used to communication parameters into the worker factory.

---------------------- **/

#include "FWCore/ParameterSet/interface/ParameterSet.h"

#include <memory>

#include <string>

namespace edm {
  class ProcessConfiguration;
  class SignallingProductRegistryFiller;
  class ExceptionToActionTable;
  class PreallocationConfiguration;

  struct WorkerParams {
    WorkerParams() : pset_(nullptr), reg_(nullptr), preallocate_(nullptr), processConfiguration_(), actions_(nullptr) {}

    WorkerParams(ParameterSet* pset,
                 SignallingProductRegistryFiller& reg,
                 PreallocationConfiguration const* prealloc,
                 std::shared_ptr<ProcessConfiguration const> processConfiguration,
                 ExceptionToActionTable const& actions)
        : pset_(pset),
          reg_(&reg),
          preallocate_(prealloc),
          processConfiguration_(processConfiguration),
          actions_(&actions) {}

    ParameterSet* pset_;
    SignallingProductRegistryFiller* reg_;
    PreallocationConfiguration const* preallocate_;
    std::shared_ptr<ProcessConfiguration const> processConfiguration_;
    ExceptionToActionTable const* actions_;
  };
}  // namespace edm

#endif