LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
TKeyVFSOpenPolicy.h
Go to the documentation of this file.
1 #ifndef art_Framework_IO_Root_RootDB_TKeyVFSOpenPolicy_h
2 #define art_Framework_IO_Root_RootDB_TKeyVFSOpenPolicy_h
3 
4 #include "TFile.h"
5 #include "sqlite3.h"
6 
7 #include <string>
8 
9 namespace art {
10 
12  public:
13  explicit TKeyVFSOpenPolicy(TFile* const tfile,
14  int const flags = SQLITE_OPEN_READONLY);
15 
16  sqlite3* open(std::string const& key);
17 
18  private:
19  TFile* tfile_;
20  int flags_;
21  };
22 }
23 
24 #endif /* art_Framework_IO_Root_RootDB_TKeyVFSOpenPolicy_h */
25 
26 // Local Variables:
27 // mode: c++
28 // End:
sqlite3 * open(std::string const &key)
HLT enums.
TKeyVFSOpenPolicy(TFile *const tfile, int const flags=SQLITE_OPEN_READONLY)