IllegalParameters

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
#ifndef FWCore_PArameterSet_IllegalParameters_h
#define FWCore_PArameterSet_IllegalParameters_h

#include <atomic>

namespace edm {

  class EventProcessor;
  class ParameterSetDescription;

  class IllegalParameters {
  private:
    static std::atomic<bool> throwAnException_;
    static bool throwAnException() { return throwAnException_; }
    static void setThrowAnException(bool v) { throwAnException_ = v; }

    friend class EventProcessor;
    friend class ParameterSetDescription;
  };
}  // namespace edm

#endif