Logo ROOT   6.10/09
Reference Guide
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 #include "TSQLRow.h"
16 
17 struct sqlite3_stmt;
18 
19 class TSQLiteRow : public TSQLRow {
20 
21 private:
22  sqlite3_stmt *fResult; // current result set
23  Bool_t IsValid(Int_t field);
24 
25 public:
26  TSQLiteRow(void *result, ULong_t rowHandle);
27  ~TSQLiteRow();
28 
29  void Close(Option_t *opt="");
31  const char *GetField(Int_t field);
32 
33  ClassDef(TSQLiteRow,0) // One row of SQLite query result
34 };
35 
36 #endif
sqlite3_stmt * fResult
Definition: TSQLiteRow.h:22
ULong_t GetFieldLength(Int_t field)
Get length in bytes of specified field.
Definition: TSQLiteRow.cxx:59
const char Option_t
Definition: RtypesCore.h:62
void Close(Option_t *opt="")
Close row.
Definition: TSQLiteRow.cxx:39
~TSQLiteRow()
Destroy row object.
Definition: TSQLiteRow.cxx:30
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TSQLiteRow(void *result, ULong_t rowHandle)
Single row of query result.
Definition: TSQLiteRow.cxx:22
#define ClassDef(name, id)
Definition: Rtypes.h:297
Bool_t IsValid(Int_t field)
Check if row is open and field index within range.
Definition: TSQLiteRow.cxx:47
const char * GetField(Int_t field)
Get specified field from row (0 <= field < GetFieldCount()).
Definition: TSQLiteRow.cxx:81
unsigned long ULong_t
Definition: RtypesCore.h:51
double result[121]