All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WebReaderService.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // WebReaderService
4 //
5 ////////////////////////////////////////////////////////////////////////
6 #ifndef WEBREADERSERVICE_H
7 #define WEBREADERSERVICE_H
8 
9 #include "fhiclcpp/ParameterSet.h"
10 #include "art/Framework/Services/Registry/ActivityRegistry.h"
11 #include "art/Framework/Services/Registry/ServiceHandle.h"
12 #include "art/Framework/Services/Registry/ServiceDeclarationMacros.h"
13 #include "art/Framework/Principal/Run.h"
14 #include "art/Framework/Principal/Event.h"
15 #include "art/Framework/Principal/Handle.h"
16 #include "canvas/Persistency/Common/Ptr.h"
17 #include "canvas/Persistency/Common/PtrVector.h"
18 #include "art_root_io/RootDB/SQLite3Wrapper.h"
19 
20 #include "larevt/CalibrationDBI/WebDBI/WebReader.h"
21 
22 namespace lariov{
23 
25 
26  public:
27 
28  WebReaderService(fhicl::ParameterSet const& pset, art::ActivityRegistry& reg);
29 
30  virtual ~WebReaderService(){}
31 
32  template <class T>
33  WebReader<T>& GetWebReader()
34  {
35  return WebReader<T>::GetME(_server,_port,_db,_timeout);
36  }
37 
38  private:
39  std::string _server;
40  std::string _port;
41  std::string _db;
42  unsigned int _timeout;
43  }; // class WebReaderService
44 
45 } //namespace lariov
46 
47 DECLARE_ART_SERVICE(lariov::WebReaderService, LEGACY)
48 
49 #endif
WebReader< T > & GetWebReader()
WebReaderService(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)