00001
00002
00003 #ifndef DBIDEMODATA3_H
00004 #define DBIDEMODATA3_H
00005
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00019
00020 #include <string>
00021 using std::string;
00022
00023 #include "TObject.h"
00024 #include "Rtypes.h"
00025
00026 #include "Conventions/Detector.h"
00027 #include "Conventions/SimFlag.h"
00028 #include "DatabaseInterface/DbiTableRow.h"
00029 #include "LeakChecker/Lea.h"
00030 #include "Validity/VldContext.h"
00031 #include "Validity/VldRange.h"
00032 #include "Validity/VldTimeStamp.h"
00033
00034 class DbiValidityRec;
00035
00036 class DbiDemoData3 : public DbiTableRow
00037 {
00038
00039 public:
00040
00041 using TObject::Compare;
00042
00043
00044 DbiDemoData3();
00045 virtual ~DbiDemoData3(){ LEA_DTOR; };
00046
00047
00048 Bool_t Compare(const DbiDemoData3* that, Bool_t printDiff = true) const;
00049
00050 virtual DbiTableRow* CreateTableRow() const {
00051 return new DbiDemoData3; }
00052
00053
00054
00055
00056 virtual void Fill(DbiResultSet& rs,
00057 const DbiValidityRec* vrec);
00058 void JunkFill();
00059 virtual void Store(DbiOutRowStream& ors,
00060 const DbiValidityRec* vrec) const;
00061
00062
00063
00064 static string GetTableDescr(const char* alternateName = 0);
00065
00066
00067 static UInt_t GetSeqNoDTF() { return 999999990; }
00068 static VldContext GetContextDTF() {
00069 return VldContext(Detector::kFar,
00070 SimFlag::kData,
00071 VldTimeStamp(2005,9,27,0,0,0));
00072 }
00073 static VldRange GetRangeDTF() {
00074 VldContext context = DbiDemoData3::GetContextDTF();
00075 VldTimeStamp tsStart = context.GetTimeStamp();
00076 VldTimeStamp tsEnd(tsStart.GetSec() + 24*60*60);
00077 return VldRange(context.GetDetector(),
00078 context.GetSimFlag(),
00079 tsStart,
00080 tsEnd,
00081 "Data Transmission Fidelity tests.");
00082 }
00083
00084 private:
00085
00086 DbiDemoData3(const DbiDemoData3& from)
00087 : DbiTableRow(from) { LEA_CTOR; *this = from; }
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103 Bool_t fBool_1;
00104 Bool_t fBool_2;
00105 Char_t fChar;
00106 string fString;
00107 string fChars;
00108 string fChars2;
00109 Short_t fSS_Tiny_1;
00110 Short_t fSS_Tiny_2;
00111 Short_t fSS_Tiny_3;
00112 Short_t fSS_Tiny_4;
00113 UShort_t fUU_Tiny_1;
00114 UShort_t fUU_Tiny_2;
00115 UShort_t fUU_Tiny_3;
00116 UShort_t fUU_Tiny_4;
00117 UShort_t fUS_Tiny_1;
00118 UShort_t fUS_Tiny_2;
00119 UShort_t fUS_Tiny_3;
00120 UShort_t fUS_Tiny_4;
00121 UShort_t fSS_Short_1;
00122 UShort_t fSS_Short_2;
00123 UShort_t fSS_Short_3;
00124 UShort_t fSS_Short_4;
00125 UShort_t fUU_Short_1;
00126 UShort_t fUU_Short_2;
00127 UShort_t fUU_Short_3;
00128 UShort_t fUU_Short_4;
00129 UShort_t fUS_Short_1;
00130 UShort_t fUS_Short_2;
00131 UShort_t fUS_Short_3;
00132 UShort_t fUS_Short_4;
00133 Int_t fSS_Int_1;
00134 Int_t fSS_Int_2;
00135 Int_t fSS_Int_3;
00136 Int_t fSS_Int_4;
00137 UInt_t fUS_Int_1;
00138 UInt_t fUS_Int_2;
00139 UInt_t fUS_Int_3;
00140 UInt_t fUS_Int_4;
00141 Float_t fFloat_1;
00142 Float_t fFloat_2;
00143 Double_t fDouble_1;
00144 Double_t fDouble_2;
00145
00146 ClassDef(DbiDemoData3,0)
00147
00148 };
00149
00150
00151 #endif // DBIDEMODATA3_H