Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::SQLite3Wrapper Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/IO/Root/RootDB/SQLite3Wrapper.h"

Public Types

typedef int(* callback_t) (void *, int, char **, char **)
 

Public Member Functions

 SQLite3Wrapper (SQLite3Wrapper const &)=delete
 
SQLite3Wrapperoperator= (SQLite3Wrapper const &)=delete
 
 SQLite3Wrapper ()
 
 SQLite3Wrapper (std::string const &key, int flags=SQLITE_OPEN_READONLY)
 
 SQLite3Wrapper (TFile *tfile, std::string const &key, int flags=SQLITE_OPEN_READWRITE)
 
std::string const & key () const
 
 operator sqlite3 * ()
 
void reset ()
 
void reset (std::string const &key, int flags=SQLITE_OPEN_READONLY)
 
void reset (TFile *tfile, std::string const &key, int flags=SQLITE_OPEN_READWRITE|SQLITE_OPEN_TRANSIENT_DB)
 
 ~SQLite3Wrapper ()
 
void swap (SQLite3Wrapper &other)
 

Static Public Member Functions

static bool wantTracing ()
 

Private Member Functions

void initDB (int flags, TFile *tfile=0)
 
void maybeTrace () const
 

Private Attributes

sqlite3 * db_
 
std::string key_
 

Detailed Description

Definition at line 17 of file SQLite3Wrapper.h.

Member Typedef Documentation

typedef int(* art::SQLite3Wrapper::callback_t) (void *, int, char **, char **)

Definition at line 22 of file SQLite3Wrapper.h.

Constructor & Destructor Documentation

art::SQLite3Wrapper::SQLite3Wrapper ( SQLite3Wrapper const &  )
delete
art::SQLite3Wrapper::SQLite3Wrapper ( )
art::SQLite3Wrapper::SQLite3Wrapper ( std::string const &  key,
int  flags = SQLITE_OPEN_READONLY 
)
explicit
art::SQLite3Wrapper::SQLite3Wrapper ( TFile *  tfile,
std::string const &  key,
int  flags = SQLITE_OPEN_READWRITE 
)
art::SQLite3Wrapper::~SQLite3Wrapper ( )

Referenced by operator sqlite3 *().

Member Function Documentation

void art::SQLite3Wrapper::initDB ( int  flags,
TFile *  tfile = 0 
)
private

Referenced by operator sqlite3 *().

std::string const& art::SQLite3Wrapper::key ( ) const
inline

Definition at line 36 of file SQLite3Wrapper.h.

References key_.

Referenced by operator sqlite3 *().

37  {
38  return key_;
39  }
void art::SQLite3Wrapper::maybeTrace ( ) const
private

Referenced by operator sqlite3 *().

art::SQLite3Wrapper::operator sqlite3 * ( )
inline
SQLite3Wrapper& art::SQLite3Wrapper::operator= ( SQLite3Wrapper const &  )
delete
void art::SQLite3Wrapper::reset ( )

Referenced by operator sqlite3 *().

void art::SQLite3Wrapper::reset ( std::string const &  key,
int  flags = SQLITE_OPEN_READONLY 
)
void art::SQLite3Wrapper::reset ( TFile *  tfile,
std::string const &  key,
int  flags = SQLITE_OPEN_READWRITE|SQLITE_OPEN_TRANSIENT_DB 
)
void art::SQLite3Wrapper::swap ( SQLite3Wrapper other)

Referenced by operator sqlite3 *().

static bool art::SQLite3Wrapper::wantTracing ( )
static

Referenced by operator sqlite3 *().

Member Data Documentation

sqlite3* art::SQLite3Wrapper::db_
private

Definition at line 64 of file SQLite3Wrapper.h.

Referenced by operator sqlite3 *().

std::string art::SQLite3Wrapper::key_
private

Definition at line 65 of file SQLite3Wrapper.h.

Referenced by key().


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