Dcs_Rps Class Reference

#include <Dcs_Rps.h>

Inheritance diagram for Dcs_Rps:
DbiTableRow

List of all members.

Public Member Functions

 Dcs_Rps ()
 Dcs_Rps (const Dcs_Rps &from)
 Dcs_Rps (UInt_t n, UInt_t r, UInt_t s, UInt_t w, UInt_t e)
virtual ~Dcs_Rps ()
Bool_t CanL2Cache () const
Bool_t Compare (const Dcs_Rps &that) const
UInt_t GetIndex (UInt_t) const
Int_t GetRackno () const
Int_t GetRackraw () const
Int_t GetRackstatus () const
Int_t GetWarning () const
Int_t GetError () 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 iRackno
Int_t iRackraw
Int_t iRackstatus
Int_t iWarn
Int_t iErr

Detailed Description

Definition at line 11 of file Dcs_Rps.h.


Constructor & Destructor Documentation

Dcs_Rps::Dcs_Rps (  )  [inline]

Definition at line 18 of file Dcs_Rps.h.

00018 { }

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

Definition at line 19 of file Dcs_Rps.h.

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

Dcs_Rps::Dcs_Rps ( UInt_t  n,
UInt_t  r,
UInt_t  s,
UInt_t  w,
UInt_t  e 
) [inline]

Definition at line 20 of file Dcs_Rps.h.

00020                                                             :
00021    iRackno(n),iRackraw(r),iRackstatus(s),iWarn(w), iErr(e) { }
  virtual ~Dcs_Rps(){ };

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

Definition at line 22 of file Dcs_Rps.h.

00022 { };


Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 26 of file Dcs_Rps.h.

00026 { return kTRUE; }

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

Definition at line 27 of file Dcs_Rps.h.

References iErr, iRackno, iRackraw, iRackstatus, and iWarn.

00027                                              {
00028                 return     iRackno == that.iRackno
00029                        &&  iRackraw  == that.iRackraw
00030                        &&  iRackstatus  == that.iRackstatus
00031                        &&  iWarn     == that.iWarn
00032                        &&  iErr     == that.iErr; }

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

Implements DbiTableRow.

Definition at line 46 of file Dcs_Rps.h.

00046 { return new Dcs_Rps; }

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

Implements DbiTableRow.

Definition at line 30 of file Dcs_Rps.cxx.

References iErr, iRackno, iRackraw, iRackstatus, and iWarn.

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_RPS" 
00047 //       && rs.TableName() != "Dcs_Rps" ) {
00048     
00049 // Dumb method.
00050           rs >> iRackno >> iRackraw >> iRackstatus >> iWarn >> iErr;
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 == "RPS_RACKNO" ) rs >> iRackno;
00061       else if ( colName == "RPS_PACKEDDATA" )  rs >> iRackraw;
00062       else if ( colName == "RPS_RACKSTATUS" )     rs >> iRackstatus;
00063       else if ( colName == "RPS_ISWARN" )     rs >> iWarn;
00064       else if ( colName == "RPS_ISERROR" )     rs >> iErr;
00065       else {
00066         MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00067                                << "(" << colName << ")"
00068                               << "; not part of DcsRps" << endl;
00069         rs.IncrementCurCol();
00070       }
00071     }
00072     
00073   }
00074 */
00075 }

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

Reimplemented from DbiTableRow.

Definition at line 40 of file Dcs_Rps.h.

References iRackno.

00040 { return iRackno; }

Int_t Dcs_Rps::GetError (  )  const [inline]

Definition at line 39 of file Dcs_Rps.h.

References iErr.

00039 { return iErr; }

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

Reimplemented from DbiTableRow.

Definition at line 34 of file Dcs_Rps.h.

References iRackno.

00034 { return iRackno; }

Int_t Dcs_Rps::GetRackno (  )  const [inline]

Definition at line 35 of file Dcs_Rps.h.

References iRackno.

00035 { return iRackno; }

Int_t Dcs_Rps::GetRackraw (  )  const [inline]

Definition at line 36 of file Dcs_Rps.h.

References iRackraw.

00036 { return iRackraw; }

Int_t Dcs_Rps::GetRackstatus (  )  const [inline]

Definition at line 37 of file Dcs_Rps.h.

References iRackstatus.

00037 { return iRackstatus; }

Int_t Dcs_Rps::GetWarning (  )  const [inline]

Definition at line 38 of file Dcs_Rps.h.

References iWarn.

00038 { return  iWarn; }

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

Reimplemented from DbiTableRow.

Definition at line 78 of file Dcs_Rps.cxx.

References iErr, iRackno, iRackraw, iRackstatus, and iWarn.

00079                                                                  {
00080 //  Purpose:  Stream object to output row stream
00081 //
00082 //  Arguments: 
00083 //    ors          in     Output row stream.
00084 //    vrec         in    Associated validity record (or 0 if filling
00085 //                                                    DbiValidityRec)
00086 //  o  Stream object to output row stream.
00087 
00088   ors << iRackno << iRackraw << iRackstatus << iWarn << iErr;
00089 }


Member Data Documentation

Int_t Dcs_Rps::iErr [private]

Definition at line 56 of file Dcs_Rps.h.

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

Int_t Dcs_Rps::iRackno [private]

Definition at line 52 of file Dcs_Rps.h.

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

Int_t Dcs_Rps::iRackraw [private]

Definition at line 53 of file Dcs_Rps.h.

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

Int_t Dcs_Rps::iRackstatus [private]

Definition at line 54 of file Dcs_Rps.h.

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

Int_t Dcs_Rps::iWarn [private]

Definition at line 55 of file Dcs_Rps.h.

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