DatabaseConnection.h
Go to the documentation of this file.
1 #ifndef art_Framework_Services_System_DatabaseConnection_h
2 #define art_Framework_Services_System_DatabaseConnection_h
3 // vim: set sw=2 expandtab :
4 
8 
9 #include <string>
10 #include <utility>
11 
12 namespace fhicl {
13  class ParameterSet;
14 } // namespace fhicl
15 
16 namespace art {
17 
19  public:
21  template <typename DatabaseOpenPolicy =
23  typename... PolicyArgs>
25  get(std::string const& filename, PolicyArgs&&... policyArgs)
26  {
27  return factory_.make_connection<DatabaseOpenPolicy>(
28  filename, std::forward<PolicyArgs>(policyArgs)...);
29  }
30 
31  private:
33  };
34 
35 } // namespace art
36 
38 #endif /* art_Framework_Services_System_DatabaseConnection_h */
39 
40 // Local Variables:
41 // mode: c++
42 // End:
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:86
string filename
Definition: shutoffs.py:106
DatabaseConnection(fhicl::ParameterSet const &)
cet::sqlite::ConnectionFactory factory_
Service to store calibration data products (CDP) in the SQLite3 metadatabase of a file...
Definition: FillParentInfo.h:8
enum BeamMode string