DummyService

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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
#ifndef ServiceRegistry_test_DummyService_h
#define ServiceRegistry_test_DummyService_h
// -*- C++ -*-
//
// Package:     ServiceRegistry
// Class  :     DummyService
//
/**\class DummyService DummyService.h FWCore/ServiceRegistry/test/stubs/DummyService.h

 Description: <one line class summary>

 Usage:
    <usage>

*/
//
// Original Author:  Chris Jones
//         Created:  Mon Sep  5 19:51:59 EDT 2005
//

// system include files

// user include files
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"

namespace edm {
  class ConfigurationDescriptions;
}

// forward declarations
namespace testserviceregistry {
  class DummyService {
  public:
    DummyService(const edm::ParameterSet&, edm::ActivityRegistry&);
    virtual ~DummyService();

    // ---------- const member functions ---------------------
    int value() const { return value_; }

    bool beginJobCalled() const { return beginJobCalled_; }

    // ---------- static member functions --------------------

    static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);

    // ---------- member functions ---------------------------

  private:
    void doOnBeginJob() { beginJobCalled_ = true; }
    DummyService(const DummyService&);  // stop default

    const DummyService& operator=(const DummyService&);  // stop default

    // ---------- member data --------------------------------
    int value_;
    bool beginJobCalled_;
  };
}  // namespace testserviceregistry

#endif