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

Dcs_Hv Class Reference

#include <Dcs_Hv.h>

Inheritance diagram for Dcs_Hv:

DbiTableRow List of all members.

Public Member Functions

 Dcs_Hv ()
 Dcs_Hv (const Dcs_Hv &from)
 Dcs_Hv (UInt_t a, UInt_t b, UInt_t c, UInt_t d, UInt_t e, UInt_t f, UInt_t g, UInt_t h, UInt_t i, UInt_t j, UInt_t k, UInt_t l)
virtual ~Dcs_Hv ()
Bool_t CanL2Cache () const
Bool_t Compare (const Dcs_Hv &that) const
UInt_t GetIndex (UInt_t) const
Int_t GetLogical () const
Int_t GetGeometry () const
Int_t GetMainframe () const
Int_t GetCard () const
Int_t GetChannel () const
Int_t GetPlane () const
Int_t GetSupermod () const
Int_t GetSide () const
Int_t GetPmt () const
Int_t GetSetV () const
Int_t GetReadV () const
Int_t GetAlarm () 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 iLogical
Int_t iGeom
Int_t iMainframe
Int_t iCard
Int_t iChannel
Int_t iPlane
Int_t iSupermod
Int_t iSide
Int_t iPmt
Int_t iSetV
Int_t iReadV
Int_t iAlarm

Constructor & Destructor Documentation

Dcs_Hv::Dcs_Hv  )  [inline]
 

Definition at line 28 of file Dcs_Hv.h.

00028 { }

Dcs_Hv::Dcs_Hv const Dcs_Hv from  )  [inline]
 

Definition at line 29 of file Dcs_Hv.h.

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

Dcs_Hv::Dcs_Hv UInt_t  a,
UInt_t  b,
UInt_t  c,
UInt_t  d,
UInt_t  e,
UInt_t  f,
UInt_t  g,
UInt_t  h,
UInt_t  i,
UInt_t  j,
UInt_t  k,
UInt_t  l
[inline]
 

Definition at line 30 of file Dcs_Hv.h.

References iAlarm, iCard, iChannel, iGeom, iLogical, iMainframe, iPlane, iPmt, iReadV, iSetV, iSide, and iSupermod.

00030                                                                                                                                  : 
00031           iLogical(a),iGeom(b),iMainframe(c),iCard(d),iChannel(e),iPlane(f),iSupermod(g),iSide(h),iPmt(i),iSetV(j),iReadV(k), iAlarm(l) { }

virtual Dcs_Hv::~Dcs_Hv  )  [inline, virtual]
 

Definition at line 32 of file Dcs_Hv.h.

00032 { };


Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 36 of file Dcs_Hv.h.

00036 { return kTRUE; }

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

Definition at line 37 of file Dcs_Hv.h.

References iAlarm, iCard, iChannel, iGeom, iLogical, iMainframe, iPlane, iPmt, iReadV, iSetV, iSide, and iSupermod.

00037                                             {
00038                 return     iLogical   == that.iLogical
00039                        &&  iGeom      == that.iGeom
00040                        &&  iMainframe == that.iMainframe
00041                        &&  iCard      == that.iCard
00042                        &&  iChannel   == that.iChannel
00043                        &&  iPlane     == that.iPlane
00044                        &&  iSupermod  == that.iSupermod
00045                        &&  iSide      == that.iSide
00046                        &&  iPmt       == that.iPmt
00047                        &&  iSetV      == that.iSetV
00048                        &&  iReadV     == that.iReadV
00049                        &&  iAlarm     == that.iAlarm; }

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

Implements DbiTableRow.

Definition at line 70 of file Dcs_Hv.h.

00070 { return new Dcs_Hv; }

void Dcs_Hv::Fill DbiResultSet rs,
const DbiValidityRec vrec
[virtual]
 

Implements DbiTableRow.

Definition at line 30 of file Dcs_Hv.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_HV" 
00047 //       && rs.TableName() != "Dcs_Hv" ) {
00048     
00049 // Dumb method.
00050           rs >> iLogical >> iGeom >> iMainframe >> iCard >> iChannel >> iPlane >> iSupermod >> iSide >> iPmt >> iSetV >> iReadV >> iAlarm;
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_LOGICAL" ) rs >> iLogical;
00061       else if ( colName == "HV_GEOMETRICAL" )  rs >> iGeom;
00062       else if ( colName == "HV_MAINFRAME" )     rs >> iMainframe;
00063       else if ( colName == "HV_CARD" )     rs >> iCard;
00064       else if ( colName == "HV_CHANNEL" )     rs >> iChannel;
00065       else if ( colName == "HV_PLANE" )     rs >> iPlane;
00066       else if ( colName == "HV_SUPERMODULE" )     rs >> iSupermod;
00067       else if ( colName == "HV_SIDE" )     rs >> iSide;
00068       else if ( colName == "HV_PMTNUMBER" )     rs >> iPmt;
00069       else if ( colName == "HV_SETVOLTAGE" )     rs >> iSetV;
00070       else if ( colName == "HV_READVOLTAGE" )     rs >> iReadV;
00071       else if ( colName == "HV_ERROR" )     rs >> iAlarm;
00072       else {
00073         MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00074                                << "(" << colName << ")"
00075                               << "; not part of DcsHv" << endl;
00076         rs.IncrementCurCol();
00077       }
00078     }  
00079   }
00080 */
00081 }

Int_t Dcs_Hv::GetAggregateNo  )  const [inline, virtual]
 

Reimplemented from DbiTableRow.

Definition at line 64 of file Dcs_Hv.h.

00064 { return iSupermod; }

Int_t Dcs_Hv::GetAlarm  )  const [inline]
 

Definition at line 63 of file Dcs_Hv.h.

00063 { return iAlarm; }

Int_t Dcs_Hv::GetCard  )  const [inline]
 

Definition at line 55 of file Dcs_Hv.h.

00055 { return iCard; }

Int_t Dcs_Hv::GetChannel  )  const [inline]
 

Definition at line 56 of file Dcs_Hv.h.

00056 { return iChannel; }

Int_t Dcs_Hv::GetGeometry  )  const [inline]
 

Definition at line 53 of file Dcs_Hv.h.

00053 { return iGeom; }

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

Reimplemented from DbiTableRow.

Definition at line 51 of file Dcs_Hv.h.

00051 { return iSupermod; }

Int_t Dcs_Hv::GetLogical  )  const [inline]
 

Definition at line 52 of file Dcs_Hv.h.

00052 { return iLogical; }

Int_t Dcs_Hv::GetMainframe  )  const [inline]
 

Definition at line 54 of file Dcs_Hv.h.

00054 { return iMainframe; }

Int_t Dcs_Hv::GetPlane  )  const [inline]
 

Definition at line 57 of file Dcs_Hv.h.

00057 { return iPlane; }

Int_t Dcs_Hv::GetPmt  )  const [inline]
 

Definition at line 60 of file Dcs_Hv.h.

00060 { return iPmt; }

Int_t Dcs_Hv::GetReadV  )  const [inline]
 

Definition at line 62 of file Dcs_Hv.h.

00062 { return  iReadV; }

Int_t Dcs_Hv::GetSetV  )  const [inline]
 

Definition at line 61 of file Dcs_Hv.h.

00061 { return iSetV; }

Int_t Dcs_Hv::GetSide  )  const [inline]
 

Definition at line 59 of file Dcs_Hv.h.

00059 { return iSide; }

Int_t Dcs_Hv::GetSupermod  )  const [inline]
 

Definition at line 58 of file Dcs_Hv.h.

00058 { return iSupermod; }

void Dcs_Hv::Store DbiOutRowStream ors,
const DbiValidityRec vrec
const [virtual]
 

Reimplemented from DbiTableRow.

Definition at line 84 of file Dcs_Hv.cxx.

References iCard, iChannel, iGeom, iLogical, iMainframe, iPlane, iPmt, iReadV, iSetV, iSide, and iSupermod.

00085                                                                  {
00086 //  Purpose:  Stream object to output row stream
00087 //
00088 //  Arguments: 
00089 //    ors          in     Output row stream.
00090 //    vrec         in    Associated validity record (or 0 if filling
00091 //                                                    DbiValidityRec)
00092 //  o  Stream object to output row stream.
00093 
00094   ors << iLogical << iGeom << iMainframe << iCard << iChannel << iPlane << iSupermod << iSide << iPmt << iSetV << iReadV << iAlarm;
00095 //  printf("printing for logical %d    geom %d\n",iLogical,iGeom); 
00096 }


Member Data Documentation

Int_t Dcs_Hv::iAlarm [private]
 

Definition at line 87 of file Dcs_Hv.h.

Referenced by Compare(), and Dcs_Hv().

Int_t Dcs_Hv::iCard [private]
 

Definition at line 79 of file Dcs_Hv.h.

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

Int_t Dcs_Hv::iChannel [private]
 

Definition at line 80 of file Dcs_Hv.h.

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

Int_t Dcs_Hv::iGeom [private]
 

Definition at line 77 of file Dcs_Hv.h.

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

Int_t Dcs_Hv::iLogical [private]
 

Definition at line 76 of file Dcs_Hv.h.

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

Int_t Dcs_Hv::iMainframe [private]
 

Definition at line 78 of file Dcs_Hv.h.

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

Int_t Dcs_Hv::iPlane [private]
 

Definition at line 81 of file Dcs_Hv.h.

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

Int_t Dcs_Hv::iPmt [private]
 

Definition at line 84 of file Dcs_Hv.h.

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

Int_t Dcs_Hv::iReadV [private]
 

Definition at line 86 of file Dcs_Hv.h.

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

Int_t Dcs_Hv::iSetV [private]
 

Definition at line 85 of file Dcs_Hv.h.

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

Int_t Dcs_Hv::iSide [private]
 

Definition at line 83 of file Dcs_Hv.h.

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

Int_t Dcs_Hv::iSupermod [private]
 

Definition at line 82 of file Dcs_Hv.h.

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


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