BfldDbiCoilLimits Class Reference

#include <BfldDbiCoilLimits.h>

Inheritance diagram for BfldDbiCoilLimits:
DbiTableRow

List of all members.

Public Member Functions

 BfldDbiCoilLimits ()
 BfldDbiCoilLimits (const BfldDbiCoilLimits &from)
 BfldDbiCoilLimits (Float_t low, Float_t high)
virtual ~BfldDbiCoilLimits ()
Bool_t CanL2Cache () const
Bool_t Compare (const BfldDbiCoilLimits &that) const
UInt_t GetIndex (UInt_t) const
Float_t GetLowLimit () const
Float_t GetHighLimit () const
std::pair< Float_t, Float_t > GetLimits () const
Int_t GetAggregateNo () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const
virtual DbiTableRowCreateTableRow () const

Private Attributes

Float_t fLowLimit
Float_t fHighLimit

Detailed Description

Definition at line 12 of file BfldDbiCoilLimits.h.


Constructor & Destructor Documentation

BfldDbiCoilLimits::BfldDbiCoilLimits (  )  [inline]

Definition at line 19 of file BfldDbiCoilLimits.h.

00019 : fLowLimit(0), fHighLimit(99999) { }

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

Definition at line 20 of file BfldDbiCoilLimits.h.

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

BfldDbiCoilLimits::BfldDbiCoilLimits ( Float_t  low,
Float_t  high 
) [inline]

Definition at line 22 of file BfldDbiCoilLimits.h.

00022                                               :
00023     fLowLimit(low), fHighLimit(high) { }
  virtual ~BfldDbiCoilLimits(){ };

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

Definition at line 24 of file BfldDbiCoilLimits.h.

00024 { };


Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 28 of file BfldDbiCoilLimits.h.

00028 { return kTRUE; }

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

Definition at line 29 of file BfldDbiCoilLimits.h.

References fHighLimit, and fLowLimit.

00029                                                        {
00030     return fLowLimit  == that.fLowLimit &&
00031            fHighLimit == that.fHighLimit    ; } 

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

Implements DbiTableRow.

Definition at line 46 of file BfldDbiCoilLimits.h.

00046 { return new BfldDbiCoilLimits; }

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

Implements DbiTableRow.

Definition at line 30 of file BfldDbiCoilLimits.cxx.

References fHighLimit, and fLowLimit.

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 // Dumb method.
00047   rs >> fLowLimit >> fHighLimit;
00048 
00049 /*
00050 // Smart method
00051   else {
00052     Int_t numCol = rs.NumCols();
00053     //  The first column (SeqNo) has already been processed.
00054     for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00055       string colName = rs.CurColName();
00056       if      ( colName == "LOWLIMIT"  ) rs >> fLowLimit;
00057       else if ( colName == "HIGHLIMIT" ) rs >> fHighLimit;
00058       else {
00059         MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00060                                << "(" << colName << ")"
00061                               << "; not part of BfldDbiCoilLimits" << endl;
00062         rs.IncrementCurCol();
00063       }
00064     }
00065     
00066   }
00067 */
00068 }

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

Reimplemented from DbiTableRow.

Definition at line 39 of file BfldDbiCoilLimits.h.

00039 { return 0; }

Float_t BfldDbiCoilLimits::GetHighLimit (  )  const [inline]

Definition at line 35 of file BfldDbiCoilLimits.h.

References fHighLimit.

00035 { return fHighLimit; }

UInt_t BfldDbiCoilLimits::GetIndex ( UInt_t   )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 33 of file BfldDbiCoilLimits.h.

00033 { return 0; }

std::pair<Float_t,Float_t> BfldDbiCoilLimits::GetLimits (  )  const [inline]

Definition at line 36 of file BfldDbiCoilLimits.h.

References fHighLimit, and fLowLimit.

Referenced by CoilTools::CoilCurrentLimits().

00037     { return std::pair<Float_t,Float_t>(fLowLimit,fHighLimit); }

Float_t BfldDbiCoilLimits::GetLowLimit (  )  const [inline]

Definition at line 34 of file BfldDbiCoilLimits.h.

References fLowLimit.

00034 { return fLowLimit; }

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

Reimplemented from DbiTableRow.

Definition at line 71 of file BfldDbiCoilLimits.cxx.

References fHighLimit, and fLowLimit.

00072                                                                      {
00073 //  Purpose:  Stream object to output row stream
00074 //
00075 //  Arguments: 
00076 //    ors          in     Output row stream.
00077 //    vrec         in    Associated validity record (or 0 if filling
00078 //                                                    DbiValidityRec)
00079 //  o  Stream object to output row stream.
00080 
00081   ors << fLowLimit << fHighLimit;
00082 }


Member Data Documentation

Float_t BfldDbiCoilLimits::fHighLimit [private]

Definition at line 53 of file BfldDbiCoilLimits.h.

Referenced by Compare(), Fill(), GetHighLimit(), GetLimits(), and Store().

Float_t BfldDbiCoilLimits::fLowLimit [private]

Definition at line 52 of file BfldDbiCoilLimits.h.

Referenced by Compare(), Fill(), GetLimits(), GetLowLimit(), 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