Dcs_Can Class Reference

#include <Dcs_Can.h>

Inheritance diagram for Dcs_Can:
DbiTableRow

List of all members.

Public Member Functions

 Dcs_Can ()
 Dcs_Can (const Dcs_Can &from)
 Dcs_Can (Int_t a, Int_t k, Float_t b, Float_t c, Float_t d, Float_t e, Float_t f, Float_t g, Float_t h, Float_t i, Int_t j)
virtual ~Dcs_Can ()
Bool_t CanL2Cache () const
Bool_t Compare (const Dcs_Can &that) const
UInt_t GetIndex (UInt_t) const
Int_t GetCrateNo () const
Int_t GetPowerState () const
Float_t GetVolt1 () const
Float_t GetVolt2 () const
Float_t GetVolt3 () const
Float_t GetVolt4 () const
Float_t GetCurr1 () const
Float_t GetCurr2 () const
Float_t GetCurr3 () const
Float_t GetCurr4 () const
Int_t GetCrateTemperature () 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

Int_t iCrateNo
Int_t iPower
Float_t fVolt1
Float_t fVolt2
Float_t fVolt3
Float_t fVolt4
Float_t fCurr1
Float_t fCurr2
Float_t fCurr3
Float_t fCurr4
Int_t iCrTemp

Detailed Description

Definition at line 11 of file Dcs_Can.h.


Constructor & Destructor Documentation

Dcs_Can::Dcs_Can (  )  [inline]

Definition at line 18 of file Dcs_Can.h.

00018 { }

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

Definition at line 19 of file Dcs_Can.h.

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

Dcs_Can::Dcs_Can ( Int_t  a,
Int_t  k,
Float_t  b,
Float_t  c,
Float_t  d,
Float_t  e,
Float_t  f,
Float_t  g,
Float_t  h,
Float_t  i,
Int_t  j 
) [inline]

Definition at line 20 of file Dcs_Can.h.

00020                                                                                                                          :
00021    iCrateNo(a), iPower(k), fVolt1(b), fVolt2(c), fVolt3(d), fVolt4(e),fCurr1(f),fCurr2(g),fCurr3(h),fCurr4(i),iCrTemp(j){ }
  virtual ~Dcs_Can(){ };

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

Definition at line 22 of file Dcs_Can.h.

00022 { };


Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 26 of file Dcs_Can.h.

00026 { return kTRUE; }

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

Definition at line 27 of file Dcs_Can.h.

References fCurr1, fCurr2, fCurr3, fCurr4, fVolt1, fVolt2, fVolt3, fVolt4, iCrateNo, iCrTemp, and iPower.

00027                                              {
00028                 return     iCrateNo   == that.iCrateNo
00029                        &&  iPower     == that.iPower
00030                        &&  fVolt1     == that.fVolt1
00031                        &&  fVolt2     == that.fVolt2
00032                        &&  fVolt3     == that.fVolt3
00033                        &&  fVolt4     == that.fVolt4
00034                        &&  fCurr1     == that.fCurr1
00035                        &&  fCurr2     == that.fCurr2
00036                        &&  fCurr3     == that.fCurr3
00037                        &&  fCurr4     == that.fCurr4
00038                        &&  iCrTemp    == that.iCrTemp; }

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

Implements DbiTableRow.

Definition at line 58 of file Dcs_Can.h.

00058 { return new Dcs_Can; }

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

Implements DbiTableRow.

Definition at line 30 of file Dcs_Can.cxx.

References fCurr1, fCurr2, fCurr3, fCurr4, fVolt1, fVolt2, fVolt3, fVolt4, iCrateNo, iCrTemp, and iPower.

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() != "DCS_Can" 
00047 //       && rs.TableName() != "Dcs_Can" ) {
00048     
00049 // Dumb method.
00050           rs >> iCrateNo >> iPower >> fVolt1 >> fVolt2 >> fVolt3 >> fVolt4 >> fCurr1 >> fCurr2 >> fCurr3 >> fCurr4 >> iCrTemp;
00051 //  }
00052   
00053 // Smart method
00054 /*  else {
00055     Int_t numCol = rs.NumCols();
00056     //  The first column (SeqNo) has already been processed.
00057     for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00058       string colName = rs.CurColName();
00059       if (      colName == "Can_RACKNO" ) rs >> iRackno;
00060       else if ( colName == "Can_PACKEDDATA" )  rs >> iRackraw;
00061       else if ( colName == "Can_RACKSTATUS" )     rs >> iRackstatus;
00062       else if ( colName == "Can_ISWARN" )     rs >> iWarn;
00063       else if ( colName == "Can_ISERROR" )     rs >> iErr;
00064       else {
00065         MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00066                                << "(" << colName << ")"
00067                               << "; not part of DcsCan" << endl;
00068         rs.IncrementCurCol();
00069       }
00070     }
00071     
00072   }
00073 */
00074 }

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

Reimplemented from DbiTableRow.

Definition at line 52 of file Dcs_Can.h.

References iCrateNo.

00052 { return iCrateNo; }

Int_t Dcs_Can::GetCrateNo (  )  const [inline]

Definition at line 41 of file Dcs_Can.h.

References iCrateNo.

00041 { return iCrateNo; }

Int_t Dcs_Can::GetCrateTemperature (  )  const [inline]

Definition at line 51 of file Dcs_Can.h.

References iCrTemp.

00051 { return iCrTemp; }

Float_t Dcs_Can::GetCurr1 (  )  const [inline]

Definition at line 47 of file Dcs_Can.h.

References fCurr1.

00047 { return fCurr1; }

Float_t Dcs_Can::GetCurr2 (  )  const [inline]

Definition at line 48 of file Dcs_Can.h.

References fCurr2.

00048 { return fCurr2; }

Float_t Dcs_Can::GetCurr3 (  )  const [inline]

Definition at line 49 of file Dcs_Can.h.

References fCurr3.

00049 { return fCurr3; }

Float_t Dcs_Can::GetCurr4 (  )  const [inline]

Definition at line 50 of file Dcs_Can.h.

References fCurr4.

00050 { return fCurr4; }

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

Reimplemented from DbiTableRow.

Definition at line 40 of file Dcs_Can.h.

References iCrateNo.

00040 { return iCrateNo; }

Int_t Dcs_Can::GetPowerState (  )  const [inline]

Definition at line 42 of file Dcs_Can.h.

References iPower.

00042 { return iPower; }

Float_t Dcs_Can::GetVolt1 (  )  const [inline]

Definition at line 43 of file Dcs_Can.h.

References fVolt1.

00043 { return fVolt1; }

Float_t Dcs_Can::GetVolt2 (  )  const [inline]

Definition at line 44 of file Dcs_Can.h.

References fVolt2.

00044 { return fVolt2; }

Float_t Dcs_Can::GetVolt3 (  )  const [inline]

Definition at line 45 of file Dcs_Can.h.

References fVolt3.

00045 { return fVolt3; }

Float_t Dcs_Can::GetVolt4 (  )  const [inline]

Definition at line 46 of file Dcs_Can.h.

References fVolt4.

00046 { return fVolt4; }

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

Reimplemented from DbiTableRow.

Definition at line 77 of file Dcs_Can.cxx.

References fCurr1, fCurr2, fCurr3, fCurr4, fVolt1, fVolt2, fVolt3, fVolt4, iCrateNo, iCrTemp, and iPower.

00078                                                                  {
00079 //  Purpose:  Stream object to output row stream
00080 //
00081 //  Arguments: 
00082 //    ors          in     Output row stream.
00083 //    vrec         in    Associated validity record (or 0 if filling
00084 //                                                    DbiValidityRec)
00085 //  o  Stream object to output row stream.
00086 
00087   ors << iCrateNo << iPower << fVolt1 << fVolt2 << fVolt3 << fVolt4 << fCurr1 << fCurr2 << fCurr3 << fCurr4 << iCrTemp;
00088 }


Member Data Documentation

Float_t Dcs_Can::fCurr1 [private]

Definition at line 70 of file Dcs_Can.h.

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

Float_t Dcs_Can::fCurr2 [private]

Definition at line 71 of file Dcs_Can.h.

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

Float_t Dcs_Can::fCurr3 [private]

Definition at line 72 of file Dcs_Can.h.

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

Float_t Dcs_Can::fCurr4 [private]

Definition at line 73 of file Dcs_Can.h.

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

Float_t Dcs_Can::fVolt1 [private]

Definition at line 66 of file Dcs_Can.h.

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

Float_t Dcs_Can::fVolt2 [private]

Definition at line 67 of file Dcs_Can.h.

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

Float_t Dcs_Can::fVolt3 [private]

Definition at line 68 of file Dcs_Can.h.

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

Float_t Dcs_Can::fVolt4 [private]

Definition at line 69 of file Dcs_Can.h.

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

Int_t Dcs_Can::iCrateNo [private]

Definition at line 64 of file Dcs_Can.h.

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

Int_t Dcs_Can::iCrTemp [private]

Definition at line 74 of file Dcs_Can.h.

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

Int_t Dcs_Can::iPower [private]

Definition at line 65 of file Dcs_Can.h.

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


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1