Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
17class sqlite3_stmt;
18
19class TSQLiteRow : public TSQLRow {
20
21private:
22 sqlite3_stmt *fResult{nullptr}; ///<! current result set
23 Bool_t IsValid(Int_t field);
24
25public:
26 TSQLiteRow(void *result, ULong_t rowHandle);
28
29 void Close(Option_t *opt="") final;
30 ULong_t GetFieldLength(Int_t field) final;
31 const char *GetField(Int_t field) final;
32
33 ClassDefOverride(TSQLiteRow,0) // One row of SQLite query result
34};
35
36#endif
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
unsigned long ULong_t
Definition RtypesCore.h:55
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Bool_t IsValid(Int_t field)
Check if row is open and field index within range.
sqlite3_stmt * fResult
! current result set
Definition TSQLiteRow.h:22
const char * GetField(Int_t field) final
Get specified field from row (0 <= field < GetFieldCount()).
~TSQLiteRow()
Destroy row object.
ULong_t GetFieldLength(Int_t field) final
Get length in bytes of specified field.
void Close(Option_t *opt="") final
Close row.