Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files 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 #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="");
30  ULong_t GetFieldLength(Int_t field);
31  const char *GetField(Int_t field);
32 
33  ClassDef(TSQLiteRow,0) // One row of SQLite query result
34 };
35 
36 #endif