DbuHvFromSingles Class Reference

#include <DbuHvFromSingles.h>

Inheritance diagram for DbuHvFromSingles:
DbiTableRow

List of all members.

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 DbiTableRowCreateTableRow () const

Private Attributes

Int_t iStatus
Int_t iSupermod
Int_t iColdChips

Detailed Description

Definition at line 12 of file DbuHvFromSingles.h.


Constructor & Destructor Documentation

DbuHvFromSingles::DbuHvFromSingles (  )  [inline]

Definition at line 19 of file DbuHvFromSingles.h.

00019 { }

DbuHvFromSingles::DbuHvFromSingles ( const DbuHvFromSingles from  )  [inline]

Definition at line 20 of file DbuHvFromSingles.h.

00020 : DbiTableRow(from) { *this = from; }

DbuHvFromSingles::DbuHvFromSingles ( Int_t  a,
UInt_t  b,
Int_t  c 
) [inline]

Definition at line 21 of file DbuHvFromSingles.h.

00021                                                :
00022    iStatus(a), iSupermod(b), iColdChips(c) { }
  virtual ~DbuHvFromSingles(){ };

virtual DbuHvFromSingles::~DbuHvFromSingles (  )  [inline, virtual]

Definition at line 23 of file DbuHvFromSingles.h.

00023 { };


Member Function Documentation

Bool_t DbuHvFromSingles::CanL2Cache (  )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 27 of file DbuHvFromSingles.h.

00027 { return kTRUE; }

Bool_t DbuHvFromSingles::Compare ( const DbuHvFromSingles that  )  const [inline]

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; }

virtual DbiTableRow* DbuHvFromSingles::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 46 of file DbuHvFromSingles.h.

00046 { return new DbuHvFromSingles; }

void DbuHvFromSingles::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

Definition at line 30 of file DbuHvFromSingles.cxx.

References iColdChips, iStatus, and iSupermod.

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 }

Int_t DbuHvFromSingles::GetAggregateNo (  )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 37 of file DbuHvFromSingles.h.

References iSupermod.

00037 { return iSupermod; }

Int_t DbuHvFromSingles::GetColdChips (  )  const [inline]
UInt_t DbuHvFromSingles::GetIndex ( UInt_t   )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 33 of file DbuHvFromSingles.h.

References iSupermod.

00033 { return iSupermod; }

Int_t DbuHvFromSingles::GetStatus (  )  const [inline]
Int_t DbuHvFromSingles::GetSupermodule (  )  const [inline]
Bool_t DbuHvFromSingles::IsOK (  )  const [inline]

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;} 

void DbuHvFromSingles::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Definition at line 76 of file DbuHvFromSingles.cxx.

References iColdChips, 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 }


Member Data Documentation

Definition at line 54 of file DbuHvFromSingles.h.

Referenced by Compare(), Fill(), GetColdChips(), and Store().

Int_t DbuHvFromSingles::iStatus [private]

Definition at line 52 of file DbuHvFromSingles.h.

Referenced by Compare(), Fill(), GetStatus(), IsOK(), and Store().

Int_t DbuHvFromSingles::iSupermod [private]

Definition at line 53 of file DbuHvFromSingles.h.

Referenced by Compare(), Fill(), GetAggregateNo(), GetIndex(), GetSupermodule(), and Store().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1