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 #include "LeakChecker/Lea.h" 00021 00022 class DbiDemoData4 : public DbiTableRow 00023 { 00024 00025 public: 00026 00027 // Constructors and destructors. 00028 DbiDemoData4(Int_t base = 0); 00029 virtual ~DbiDemoData4(){ LEA_DTOR; }; 00030 00031 enum { dataSize = 50 }; 00032 00033 // State testing member functions 00034 Bool_t IsValid() const; 00035 00036 virtual DbiTableRow* CreateTableRow() const { 00037 return new DbiDemoData4; } 00038 00039 // State changing member functions 00040 virtual void Fill(DbiResultSet& rs, 00041 const DbiValidityRec* vrec); 00042 virtual void Store(DbiOutRowStream& ors, 00043 const DbiValidityRec* vrec) const; 00044 00045 00046 private: 00047 // Constructors and destructors. 00048 DbiDemoData4(const DbiDemoData4& from) 00049 : DbiTableRow(from) { LEA_CTOR; *this = from; } 00050 00051 // Data members 00052 00053 Int_t fData[dataSize]; 00054 ClassDef(DbiDemoData4,0) // Example of non-aggregated datadata type. 00055 00056 }; 00057 00058 00059 #endif // DBIDEMODATA4_H
1.3.9.1