ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TSQLiteRow.h
Go to the documentation of this file.
1 // @(#)root/sqlite:
2 // Author: o.freyermuth <o.f@cern.ch>, 01/06/2013
3 
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 #ifndef ROOT_TSQLRow
16 #include "TSQLRow.h"
17 #endif
18 
19 #if !defined(__CINT__)
20 #include <sqlite3.h>
21 #else
22 struct sqlite3_stmt;
23 #endif
24 
25 
26 class TSQLiteRow : public TSQLRow {
27 
28 private:
29  sqlite3_stmt *fResult; // current result set
30  Bool_t IsValid(Int_t field);
31 
32 public:
33  TSQLiteRow(void *result, ULong_t rowHandle);
34  ~TSQLiteRow();
35 
36  void Close(Option_t *opt="");
38  const char *GetField(Int_t field);
39 
40  ClassDef(TSQLiteRow,0) // One row of SQLite query result
41 };
42 
43 #endif
sqlite3_stmt * fResult
Definition: TSQLiteRow.h:29
ULong_t GetFieldLength(Int_t field)
Get length in bytes of specified field.
Definition: TSQLiteRow.cxx:57
const char Option_t
Definition: RtypesCore.h:62
void Close(Option_t *opt="")
Close row.
Definition: TSQLiteRow.cxx:37
~TSQLiteRow()
Destroy row object.
Definition: TSQLiteRow.cxx:28
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TSQLiteRow(void *result, ULong_t rowHandle)
#define ClassDef(name, id)
Definition: Rtypes.h:254
Bool_t IsValid(Int_t field)
Check if row is open and field index within range.
Definition: TSQLiteRow.cxx:45
const char * GetField(Int_t field)
Get specified field from row (0 <= field < GetFieldCount()).
Definition: TSQLiteRow.cxx:79
unsigned long ULong_t
Definition: RtypesCore.h:51
double result[121]