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 62 63 64 65 66 67 68 69 70 71 72 73 74
// -*- C++ -*-
//
// Package:     test
// Class  :     DummyService
//
// Implementation:
//     <Notes on implementation>
//
// Original Author:  Chris Jones
//         Created:  Mon Sep  5 19:52:01 EDT 2005
//

// system include files

// user include files
#include "FWCore/ServiceRegistry/test/stubs/DummyService.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"

//
// constants, enums and typedefs
//
using namespace testserviceregistry;

//
// static data member definitions
//

void DummyService::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
  edm::ParameterSetDescription desc;

  desc.add<int>("value");

  descriptions.addDefault(desc);
}

//
// constructors and destructor
//
DummyService::DummyService(const edm::ParameterSet& iPSet, edm::ActivityRegistry& iAR)
    : value_(iPSet.getParameter<int>("value")), beginJobCalled_(false) {
  iAR.watchPostBeginJob(this, &DummyService::doOnBeginJob);
}

// DummyService::DummyService(const DummyService& rhs)
// {
//    // do actual copying here;
// }

DummyService::~DummyService() {}

//
// assignment operators
//
// const DummyService& DummyService::operator=(const DummyService& rhs)
// {
//   //An exception safe implementation is
//   DummyService temp(rhs);
//   swap(rhs);
//
//   return *this;
// }

//
// member functions
//

//
// const member functions
//

//
// static member functions
//