KaliVeda
Toolkit for HIC analysis
TSQLiteRow.h
1 
4 /*************************************************************************
5  * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TSQLiteRow
13 #define ROOT_TSQLiteRow
14 
15 #include "TSQLRow.h"
16 
17 class sqlite3_stmt;
18 
19 
28 class TSQLiteRow : public TSQLRow {
29 
30 private:
31  sqlite3_stmt* fResult{nullptr};
32  Bool_t IsValid(Int_t field);
33 
34 public:
35  TSQLiteRow(void* result, ULong_t rowHandle);
36  ~TSQLiteRow();
37 
38  void Close(Option_t* opt = "") final;
39  ULong_t GetFieldLength(Int_t field) final;
40  const char* GetField(Int_t field) final;
41 
42  ClassDefOverride(TSQLiteRow, 0) // One row of SQLite query result
43 };
44 
45 #endif
int Int_t
unsigned long ULong_t
bool Bool_t
const char Option_t
Bool_t IsValid(Int_t field)
Definition: TSQLiteRow.cxx:62
sqlite3_stmt * fResult
Definition: TSQLiteRow.h:31
const char * GetField(Int_t field) final
Definition: TSQLiteRow.cxx:104
TSQLiteRow(void *result, ULong_t rowHandle)
Definition: TSQLiteRow.cxx:25
ULong_t GetFieldLength(Int_t field) final
Definition: TSQLiteRow.cxx:78
void Close(Option_t *opt="") final
Definition: TSQLiteRow.cxx:50