Last change
on this file since 17048 was 15439, checked in by tbretz, 12 years ago |
Removed all obsolete code from the root copied classes; now everything is returned asa double (enough for plots) and as a bonus time columns are now returned as a root axis-time; as a sql server reference MSqlServer is now used and tree is a member of MSqlServer.
|
File size:
1.8 KB
|
Line | |
---|
1 | // @(#)root/tree:$Id: MBufferSQL.h 25450 2008-09-18 21:13:42Z pcanal $
|
---|
2 | // Author: Philippe Canal 2005
|
---|
3 |
|
---|
4 | /*************************************************************************
|
---|
5 | * Copyright (C) 1995-2000, 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_MBufferSQL
|
---|
13 | #define ROOT_MBufferSQL
|
---|
14 |
|
---|
15 | //////////////////////////////////////////////////////////////////////////
|
---|
16 | // //
|
---|
17 | // MBufferSQL //
|
---|
18 | // //
|
---|
19 | // Implement TBuffer for a SQL backend //
|
---|
20 | // //
|
---|
21 | //////////////////////////////////////////////////////////////////////////
|
---|
22 |
|
---|
23 | #ifndef ROOT_TBufferFile
|
---|
24 | #include "TBufferFile.h"
|
---|
25 | #endif
|
---|
26 | #ifndef ROOT_TString
|
---|
27 | #include "TString.h"
|
---|
28 | #endif
|
---|
29 |
|
---|
30 |
|
---|
31 | class TSQLResult;
|
---|
32 | class TSQLRow;
|
---|
33 |
|
---|
34 | class MBufferSQL : public TBufferFile
|
---|
35 | {
|
---|
36 | private:
|
---|
37 | TSQLRow **fRowPtr; //!
|
---|
38 | Int_t fIndex;
|
---|
39 | Bool_t fIsDate;
|
---|
40 |
|
---|
41 | // TBuffer objects cannot be copied or assigned
|
---|
42 | MBufferSQL(const MBufferSQL &); // not implemented
|
---|
43 | void operator=(const MBufferSQL &); // not implemented
|
---|
44 |
|
---|
45 | public:
|
---|
46 | MBufferSQL();
|
---|
47 | MBufferSQL(TSQLRow **row, Int_t index, TString type);
|
---|
48 |
|
---|
49 | void ReadDouble(Double_t &d);
|
---|
50 |
|
---|
51 | ClassDef(MBufferSQL, 1); // Implementation of TBuffer to load and write to a SQL database
|
---|
52 | };
|
---|
53 |
|
---|
54 | #endif
|
---|
55 |
|
---|
56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.