DBIService.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////
2 /// \brief Simple service to provide a configurable Database table object
3 /// \author Christopher Backhouse - bckhouse@caltech.edu
4 //////////////////////////////////////////////////////////////////////////
5 
6 #ifndef IFDBISERVICE_H
7 #define IFDBISERVICE_H
8 
9 #include <string>
10 
14 #include "fhiclcpp/ParameterSet.h"
15 #include "nutools/EventDisplayBase/Reconfigurable.h"
16 #include "nutools/IFDatabase/Table.h"
17 
18 
19 namespace nutools
20 {
21  namespace dbi
22  {
23 
24  /// \brief Simple service to provide a RunHistory configured to the right run
26  {
27  public:
28  // Get a RunHistoryService instance here
29  DBIService(const fhicl::ParameterSet& pset);
30 
31  void reconfigure(const fhicl::ParameterSet& pset);
32 
34  std::string schemaName="",
35  int tableType=nutools::dbi::kConditionsTable,
36  int dataSource=nutools::dbi::kOffline);
37 
38  protected:
42 
46 
47  };
48 
49  }
50 }
51 
53 
54 #endif
55 ////////////////////////////////////////////////////////////////////////
std::string string
Definition: nybbler.cc:12
Simple service to provide a RunHistory configured to the right run.
Definition: DBIService.h:25
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:86
DBIService(const fhicl::ParameterSet &pset)
Definition: DBI_service.cc:18
Simple service to provide a RunHistory configured to the right run.
Definition: Column.cpp:14
Table * CreateTable(std::string tableName="", std::string schemaName="", int tableType=nutools::dbi::kConditionsTable, int dataSource=nutools::dbi::kOffline)
Definition: DBI_service.cc:36
std::string fQueryEngineURL
Definition: DBIService.h:44
std::string fWebServiceURL
Definition: DBIService.h:43
void reconfigure(const fhicl::ParameterSet &pset)
Definition: DBI_service.cc:24
std::string tableName