LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::DatabaseConnection Class Reference

#include "DatabaseConnection.h"

Public Member Functions

 DatabaseConnection (fhicl::ParameterSet const &)
 
template<typename DatabaseOpenPolicy = cet::sqlite::detail::DefaultDatabaseOpenPolicy, typename... PolicyArgs>
cet::sqlite::Connection get (std::string const &filename, PolicyArgs &&...policyArgs)
 

Private Attributes

cet::sqlite::ConnectionFactory factory_
 

Detailed Description

Definition at line 19 of file DatabaseConnection.h.

Constructor & Destructor Documentation

art::DatabaseConnection::DatabaseConnection ( fhicl::ParameterSet const &  )
inlineexplicit

Definition at line 21 of file DatabaseConnection.h.

21 {}

Member Function Documentation

template<typename DatabaseOpenPolicy = cet::sqlite::detail::DefaultDatabaseOpenPolicy, typename... PolicyArgs>
cet::sqlite::Connection art::DatabaseConnection::get ( std::string const &  filename,
PolicyArgs &&...  policyArgs 
)
inline

Definition at line 27 of file DatabaseConnection.h.

28  {
29  return factory_.make<DatabaseOpenPolicy>(
30  filename, std::forward<PolicyArgs>(policyArgs)...);
31  }
cet::sqlite::ConnectionFactory factory_

Member Data Documentation

cet::sqlite::ConnectionFactory art::DatabaseConnection::factory_
private

Definition at line 34 of file DatabaseConnection.h.


The documentation for this class was generated from the following file: