CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Standalone.h
Go to the documentation of this file.
1 #ifndef DQMSERVICES_CORE_STANDALONE_H
2 # define DQMSERVICES_CORE_STANDALONE_H
3 # if !WITHOUT_CMS_FRAMEWORK
10 # else
11 # include <memory>
12 # include <string>
13 # include <vector>
14 # include <map>
15 
16 namespace edm
17 {
18  std::string getReleaseVersion(void)
19  { return "CMSSW_STANDALONE"; }
20 
21  struct ParameterSet
22  {
23  template <class T> static const T &
24  getUntrackedParameter(const char * /* key */, const T &value)
25  { return value; }
26  };
27 
28  struct ServiceToken
29  {
30  ServiceToken(int) {}
31  };
32 
33  struct ServiceRegistry
34  {
35  struct Operate
36  {
37  Operate(const ServiceToken &) {}
38  };
39 
40  static int createSet(const std::vector<ParameterSet> &) { return 0; }
41  };
42 
43  template <class T>
44  struct Service
45  {
46  bool isAvailable(void) { return false; }
47  T *operator->(void)
48  {
49  static char buf[sizeof(T)]; static T *x;
50  if (! x) x = new (buf) T(ParameterSet());
51  return x;
52  }
53  T &operator*(void) { return * operator->(); }
54  };
55 
56  struct ActivityRegistry
57  {
58  template <typename T>
59  void watchPostSourceRun(void*, T) {}
60  };
61 
62 
63  struct JobReport
64  {
65  JobReport(const edm::ParameterSet &) {}
66  void reportAnalysisFile(const std::string &, const std::map<std::string, std::string> &) {}
67  };
68 }
69 # endif // WITHOUT_CMS_FRAMEWORK
70 #endif // DQMSERVICES_CORE_STANDALONE_H
T & operator*() const
Definition: Service.h:43
T getUntrackedParameter(std::string const &, T const &) const
void reportAnalysisFile(std::string const &fileName, std::map< std::string, std::string > const &fileData)
Definition: JobReport.cc:685
void watchPostSourceRun(PostSourceRun::slot_type const &iSlot)
bool isAvailable() const
Definition: Service.h:47
Operate(ServiceToken const &iToken)
static ServiceToken createSet(std::vector< ParameterSet > &)
std::string getReleaseVersion()
Definition: DDAxes.h:10
long double T
T * operator->() const
Definition: Service.h:39