| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DbiDemoData4.h

Go to the documentation of this file.
00001 // $Id: DbiDemoData4.h,v 1.1 2003/03/26 09:58:11 west Exp $
00002 
00003 #ifndef DBIDEMODATA4_H
00004 #define DBIDEMODATA4_H
00005 
00007 // DbiDemoData4                                                       //
00008 //                                                                    //
00009 // Package: Dbi (Database Interface).                                 //
00010 //                                                                    //
00011 // Concept:  A concrete data type corresponding to a single row in a  //
00012 //          database table. Used to test out cache saving.            //
00013 //                                                                    //
00014 // N. West  02/2001                                                   //
00016 
00017 
00018 #include "Rtypes.h"
00019 #include "DatabaseInterface/DbiTableRow.h"
00020 
00021 class DbiDemoData4 : public DbiTableRow
00022 {
00023 
00024 public:
00025 
00026 // Constructors and destructors.
00027   DbiDemoData4(Int_t base = 0);
00028   virtual ~DbiDemoData4(){  };
00029 
00030   enum { dataSize = 50 };
00031 
00032 // State testing member functions
00033   Bool_t   IsValid()   const;
00034  
00035   virtual DbiTableRow* CreateTableRow() const { 
00036                                              return new DbiDemoData4; }
00037 
00038 // State changing member functions
00039   virtual void Fill(DbiResultSet& rs,
00040                     const DbiValidityRec* vrec);
00041   virtual void Store(DbiOutRowStream& ors,
00042                      const DbiValidityRec* vrec) const;
00043 
00044 
00045 private:  
00046 // Constructors and destructors.
00047    DbiDemoData4(const DbiDemoData4& from)
00048     : DbiTableRow(from) {  *this = from; }
00049 
00050 // Data members
00051 
00052    Int_t fData[dataSize];
00053 // Removed: ClassDef(DbiDemoData4,0)    // Example of non-aggregated datadata type. 
00054 
00055 };
00056 
00057 
00058 #endif  // DBIDEMODATA4_H
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:17:02 2011 for DbiTest by doxygen 1.4.7