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:
std::string string
Definition: nybbler.cc:12
DatabaseConnection(fhicl::ParameterSet const &)
cet::sqlite::ConnectionFactory factory_
string filename
Definition: train.py:213
#define DECLARE_ART_SERVICE(svc, scope)