Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

Constructor & Destructor Documentation

Dcs_Can::Dcs_Can  )  [inline]
 

Definition at line 28 of file Dcs_Can.h.

00028 { }

Dcs_Can::Dcs_Can const Dcs_Can from  )  [inline]
 

Definition at line 29 of file Dcs_Can.h.

00029 : 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 30 of file Dcs_Can.h.

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

00030                                                                                                                          :
00031    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 32 of file Dcs_Can.h.

00032 { };


Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 36 of file Dcs_Can.h.

00036 { return kTRUE; }

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

Definition at line 37 of file Dcs_Can.h.

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

00037                                              {
00038                 return     iCrateNo   == that.iCrateNo
00039                        &&  iPower     == that.iPower
00040                        &&  fVolt1     == that.fVolt1
00041                        &&  fVolt2     == that.fVolt2
00042                        &&  fVolt3     == that.fVolt3
00043                        &&  fVolt4     == that.fVolt4
00044                        &&  fCurr1     == that.fCurr1
00045                        &&  fCurr2     == that.fCurr2
00046                        &&  fCurr3     == that.fCurr3
00047                        &&  fCurr4     == that.fCurr4
00048                        &&  iCrTemp    == that.iCrTemp; }

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

Implements DbiTableRow.

Definition at line 68 of file Dcs_Can.h.

00068 { 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.

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 62 of file Dcs_Can.h.

00062 { return iCrateNo; }

Int_t Dcs_Can::GetCrateNo  )  const [inline]
 

Definition at line 51 of file Dcs_Can.h.

00051 { return iCrateNo; }

Int_t Dcs_Can::GetCrateTemperature  )  const [inline]
 

Definition at line 61 of file Dcs_Can.h.

00061 { return iCrTemp; }

Float_t Dcs_Can::GetCurr1  )  const [inline]
 

Definition at line 57 of file Dcs_Can.h.

00057 { return fCurr1; }

Float_t Dcs_Can::GetCurr2  )  const [inline]
 

Definition at line 58 of file Dcs_Can.h.

00058 { return fCurr2; }

Float_t Dcs_Can::GetCurr3  )  const [inline]
 

Definition at line 59 of file Dcs_Can.h.

00059 { return fCurr3; }

Float_t Dcs_Can::GetCurr4  )  const [inline]
 

Definition at line 60 of file Dcs_Can.h.

00060 { return fCurr4; }

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

Reimplemented from DbiTableRow.

Definition at line 50 of file Dcs_Can.h.

00050 { return iCrateNo; }

Int_t Dcs_Can::GetPowerState  )  const [inline]
 

Definition at line 52 of file Dcs_Can.h.

00052 { return iPower; }

Float_t Dcs_Can::GetVolt1  )  const [inline]
 

Definition at line 53 of file Dcs_Can.h.

00053 { return fVolt1; }

Float_t Dcs_Can::GetVolt2  )  const [inline]
 

Definition at line 54 of file Dcs_Can.h.

00054 { return fVolt2; }

Float_t Dcs_Can::GetVolt3  )  const [inline]
 

Definition at line 55 of file Dcs_Can.h.

00055 { return fVolt3; }

Float_t Dcs_Can::GetVolt4  )  const [inline]
 

Definition at line 56 of file Dcs_Can.h.

00056 { 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, 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 80 of file Dcs_Can.h.

Referenced by Compare(), Dcs_Can(), and Store().

Float_t Dcs_Can::fCurr2 [private]
 

Definition at line 81 of file Dcs_Can.h.

Referenced by Compare(), Dcs_Can(), and Store().

Float_t Dcs_Can::fCurr3 [private]
 

Definition at line 82 of file Dcs_Can.h.

Referenced by Compare(), Dcs_Can(), and Store().

Float_t Dcs_Can::fCurr4 [private]
 

Definition at line 83 of file Dcs_Can.h.

Referenced by Compare(), Dcs_Can(), and Store().

Float_t Dcs_Can::fVolt1 [private]
 

Definition at line 76 of file Dcs_Can.h.

Referenced by Compare(), Dcs_Can(), and Store().

Float_t Dcs_Can::fVolt2 [private]
 

Definition at line 77 of file Dcs_Can.h.

Referenced by Compare(), Dcs_Can(), and Store().

Float_t Dcs_Can::fVolt3 [private]
 

Definition at line 78 of file Dcs_Can.h.

Referenced by Compare(), Dcs_Can(), and Store().

Float_t Dcs_Can::fVolt4 [private]
 

Definition at line 79 of file Dcs_Can.h.

Referenced by Compare(), Dcs_Can(), and Store().

Int_t Dcs_Can::iCrateNo [private]
 

Definition at line 74 of file Dcs_Can.h.

Referenced by Compare(), Dcs_Can(), and Store().

Int_t Dcs_Can::iCrTemp [private]
 

Definition at line 84 of file Dcs_Can.h.

Referenced by Compare(), and Dcs_Can().

Int_t Dcs_Can::iPower [private]
 

Definition at line 75 of file Dcs_Can.h.

Referenced by Compare(), Dcs_Can(), and Store().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:09:05 2010 for loon by  doxygen 1.3.9.1