Last change
on this file since 20093 was 19289, checked in by tbretz, 6 years ago |
Suppress some -Wcast-align warning from some root header (we can not influence that anyhow)
|
File size:
1.9 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 | #pragma GCC diagnostic push
|
---|
25 | #pragma GCC diagnostic ignored "-Wcast-align"
|
---|
26 | #include "TBufferFile.h"
|
---|
27 | #pragma GCC diagnostic pop
|
---|
28 | #endif
|
---|
29 | #ifndef ROOT_TString
|
---|
30 | #include "TString.h"
|
---|
31 | #endif
|
---|
32 |
|
---|
33 |
|
---|
34 | class TSQLResult;
|
---|
35 | class TSQLRow;
|
---|
36 |
|
---|
37 | class MBufferSQL : public TBufferFile
|
---|
38 | {
|
---|
39 | private:
|
---|
40 | TSQLRow **fRowPtr; //!
|
---|
41 | Int_t fIndex;
|
---|
42 | Bool_t fIsDate;
|
---|
43 |
|
---|
44 | // TBuffer objects cannot be copied or assigned
|
---|
45 | MBufferSQL(const MBufferSQL &); // not implemented
|
---|
46 | void operator=(const MBufferSQL &); // not implemented
|
---|
47 |
|
---|
48 | public:
|
---|
49 | MBufferSQL();
|
---|
50 | MBufferSQL(TSQLRow **row, Int_t index, TString type);
|
---|
51 |
|
---|
52 | void ReadDouble(Double_t &d);
|
---|
53 |
|
---|
54 | ClassDef(MBufferSQL, 1); // Implementation of TBuffer to load and write to a SQL database
|
---|
55 | };
|
---|
56 |
|
---|
57 | #endif
|
---|
58 |
|
---|
59 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.