#include <DbuHvFromSingles.h>
Inheritance diagram for DbuHvFromSingles:

Public Member Functions | |
| DbuHvFromSingles () | |
| DbuHvFromSingles (const DbuHvFromSingles &from) | |
| DbuHvFromSingles (Int_t a, UInt_t b, Int_t c) | |
| virtual | ~DbuHvFromSingles () |
| Bool_t | CanL2Cache () const |
| Bool_t | Compare (const DbuHvFromSingles &that) const |
| UInt_t | GetIndex (UInt_t) const |
| Int_t | GetStatus () const |
| Int_t | GetSupermodule () const |
| Int_t | GetColdChips () const |
| Int_t | GetAggregateNo () const |
| Bool_t | IsOK () const |
| virtual void | Fill (DbiResultSet &rs, const DbiValidityRec *vrec) |
| virtual void | Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const |
| virtual DbiTableRow * | CreateTableRow () const |
Private Attributes | |
| Int_t | iStatus |
| Int_t | iSupermod |
| Int_t | iColdChips |
|
|
Definition at line 19 of file DbuHvFromSingles.h. 00019 { }
|
|
|
Definition at line 20 of file DbuHvFromSingles.h. 00020 : DbiTableRow(from) { *this = from; }
|
|
||||||||||||||||
|
Definition at line 21 of file DbuHvFromSingles.h. References iColdChips, iStatus, and iSupermod. 00021 : 00022 iStatus(a), iSupermod(b), iColdChips(c) { } virtual ~DbuHvFromSingles(){ };
|
|
|
Definition at line 23 of file DbuHvFromSingles.h. 00023 { };
|
|
|
Reimplemented from DbiTableRow. Definition at line 27 of file DbuHvFromSingles.h. 00027 { return kTRUE; }
|
|
|
Definition at line 28 of file DbuHvFromSingles.h. References iColdChips, iStatus, and iSupermod. 00028 {
00029 return iStatus == that.iStatus
00030 && iSupermod == that.iSupermod
00031 && iColdChips == that.iColdChips; }
|
|
|
Implements DbiTableRow. Definition at line 46 of file DbuHvFromSingles.h. 00046 { return new DbuHvFromSingles; }
|
|
||||||||||||
|
Implements DbiTableRow. Definition at line 30 of file DbuHvFromSingles.cxx. 00031 {
00032 //
00033 //
00034 // Purpose: Fill object from Result Set
00035 //
00036 // Arguments:
00037 // rs in Result Set used to fill object
00038 // vrec in Associated validity record (or 0 if filling
00039 // DbiValidityRec)
00040 //
00041 // o Fill object from current row of Result Set.
00042 // This method demonstrates both the "dumb" fill method (just
00043 // load the data as it comes) and the smart method (check column
00044 // name and load according to column order).
00045
00046 // if ( rs.TableName() != "HVDBIFROMSINGLES"
00047 // && rs.TableName() != "DbuHvFromSingles" ) {
00048
00049 // Dumb method.
00050 rs >> iStatus >> iSupermod >> iColdChips;
00051
00052 /* }
00053
00054 // Smart method
00055 else {
00056 Int_t numCol = rs.NumCols();
00057 // The first column (SeqNo) has already been processed.
00058 for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00059 string colName = rs.CurColName();
00060 if ( colName == "HV_STATUS" ) rs >> iStatus;
00061 else if ( colName == "HV_SUPERMODULE" ) rs >> iSupermod;
00062 else if ( colName == "HV_COLDCHIPS" ) rs >> iColdChips;
00063 else {
00064 MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol
00065 << "(" << colName << ")"
00066 << "; not part of DbuHvFromSingles" << endl;
00067 rs.IncrementCurCol();
00068 }
00069 }
00070
00071 }
00072 */
00073 }
|
|
|
Reimplemented from DbiTableRow. Definition at line 37 of file DbuHvFromSingles.h. Referenced by FillHvFromSingles::WriteToDatabase(). 00037 { return iSupermod; }
|
|
|
Definition at line 36 of file DbuHvFromSingles.h. Referenced by HvStatusFinder::ExtendedQuery(), NtpSRModule::FillNtpDetStatus(), HvStatusFinder::LocalQuery(), and FillHvFromSingles::ReadFromDatabase(). 00036 { return iColdChips; }
|
|
|
Reimplemented from DbiTableRow. Definition at line 33 of file DbuHvFromSingles.h. 00033 { return iSupermod; }
|
|
|
Definition at line 34 of file DbuHvFromSingles.h. Referenced by HvStatusFinder::ExtendedQuery(), NtpSRModule::FillNtpDetStatus(), HvStatusFinder::LocalQuery(), and FillHvFromSingles::ReadFromDatabase(). 00034 { return iStatus; }
|
|
|
Definition at line 35 of file DbuHvFromSingles.h. Referenced by HvStatusFinder::ExtendedQuery(), NtpSRModule::FillNtpDetStatus(), HvStatusFinder::LocalQuery(), and FillHvFromSingles::ReadFromDatabase(). 00035 { return iSupermod; }
|
|
|
Definition at line 38 of file DbuHvFromSingles.h. References iStatus. 00038 { if (iStatus == 0) // let Unknown be OK
00039 return false; // run's down anyway
00040 else return true;}
|
|
||||||||||||
|
Reimplemented from DbiTableRow. Definition at line 76 of file DbuHvFromSingles.cxx. References iStatus, and iSupermod. 00077 {
00078 // Purpose: Stream object to output row stream
00079 //
00080 // Arguments:
00081 // ors in Output row stream.
00082 // vrec in Associated validity record (or 0 if filling
00083 // DbiValidityRec)
00084 // o Stream object to output row stream.
00085
00086 ors << iStatus << iSupermod << iColdChips;
00087 }
|
|
|
Definition at line 54 of file DbuHvFromSingles.h. Referenced by Compare(), and DbuHvFromSingles(). |
|
|
Definition at line 52 of file DbuHvFromSingles.h. Referenced by Compare(), DbuHvFromSingles(), IsOK(), and Store(). |
|
|
Definition at line 53 of file DbuHvFromSingles.h. Referenced by Compare(), DbuHvFromSingles(), and Store(). |
1.3.9.1