/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
DcsPmtHv Class Reference

#include <DcsPmtHv.h>

Inheritance diagram for DcsPmtHv:
Inheritance graph
[legend]
Collaboration diagram for DcsPmtHv:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DcsPmtHv ()
 DcsPmtHv (const DcsPmtHv &from)
 DcsPmtHv (int lad, int col, int rin, float vol, int pow)
virtual ~DcsPmtHv ()
Bool_t CanL2Cache () const
Bool_t Compare (const DcsPmtHv &that) const
int GetLadder () const
int GetColumn () const
int GetRing () const
float GetVoltage () const
int GetPower () const
virtual DbiTableRowCreateTableRow () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const
virtual std::string name () const
virtual size_t size () const
virtual Bool_t CanFixOrdering () const
virtual std::string GetExtraCondition () const
virtual Int_t GetAggregateNo () const
DbiResultGetOwner () const
virtual UInt_t GetIndex (UInt_t defIndex) const
void SetOwner (DbiResult *owner)
virtual bool CreateDatabaseTables (Int_t db_no=0, const char *tablename="default")
virtual std::string GetDatabaseLayout ()

Private Attributes

int m_Ladder
int m_Column
int m_Ring
float m_Voltage
int m_Power

Detailed Description

Definition at line 12 of file DcsPmtHv.h.


Constructor & Destructor Documentation

DcsPmtHv::DcsPmtHv ( ) [inline]

Definition at line 16 of file DcsPmtHv.h.

{ }
DcsPmtHv::DcsPmtHv ( const DcsPmtHv from) [inline]

Definition at line 18 of file DcsPmtHv.h.

    : DbiTableRow(from) { *this = from; }
DcsPmtHv::DcsPmtHv ( int  lad,
int  col,
int  rin,
float  vol,
int  pow 
) [inline]

Definition at line 21 of file DcsPmtHv.h.

                                                          :
             m_Ladder(lad), m_Column(col),
             m_Ring(rin), m_Voltage(vol), 
             m_Power(pow) { }; 
virtual DcsPmtHv::~DcsPmtHv ( ) [inline, virtual]

Definition at line 26 of file DcsPmtHv.h.

{  };

Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 29 of file DcsPmtHv.h.

{ return kFALSE; }
Bool_t DcsPmtHv::Compare ( const DcsPmtHv that) const [inline]

Definition at line 31 of file DcsPmtHv.h.

                                              {
                return      m_Ladder     == that.m_Ladder
                       &&   m_Column     == that.m_Column
                       &&   m_Ring       == that.m_Ring
                       &&   m_Voltage    == that.m_Voltage
                       &&   m_Power      == that.m_Power;
   }
int DcsPmtHv::GetLadder ( ) const [inline]

Definition at line 39 of file DcsPmtHv.h.

{ return m_Ladder; }
int DcsPmtHv::GetColumn ( ) const [inline]

Definition at line 40 of file DcsPmtHv.h.

{ return m_Column; }
int DcsPmtHv::GetRing ( ) const [inline]

Definition at line 41 of file DcsPmtHv.h.

{ return m_Ring; }
float DcsPmtHv::GetVoltage ( ) const [inline]

Definition at line 42 of file DcsPmtHv.h.

{ return m_Voltage; }
int DcsPmtHv::GetPower ( ) const [inline]

Definition at line 43 of file DcsPmtHv.h.

{ return m_Power; }
virtual DbiTableRow* DcsPmtHv::CreateTableRow ( ) const [inline, virtual]

Implements DbiTableRow.

Definition at line 45 of file DcsPmtHv.h.

{ return new DcsPmtHv; }
void DcsPmtHv::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

Definition at line 13 of file DcsPmtHv.cc.

                                             {

    Int_t numCol = rs.NumCols();
    //  The first column (SeqNo) has already been processed.
    for (Int_t curCol = 2; curCol <= numCol; ++curCol) {
      string colName = rs.CurColName();
      if (      colName == "LADDER"    )     rs >> m_Ladder;
      else if ( colName == "COLUMN" )        rs >> m_Column;
      else if ( colName == "RING" )          rs >> m_Ring;
      else if ( colName == "VOLTAGE" )       rs >> m_Voltage;
      else if ( colName == "POWER" )         rs >> m_Power;
      else {
        LOG(dbi,Logging::kDebug1) << "Ignoring column " << curCol 
                               << "(" << colName << ")"
                              << "; not part of DcsPmtHv" << std::endl;
        rs.IncrementCurCol();
      }
    }
    
}
void DcsPmtHv::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Definition at line 35 of file DcsPmtHv.cc.

                                                        {
  ors << m_Ladder << m_Column << m_Ring << m_Voltage << m_Power; 
   
}

Member Data Documentation

int DcsPmtHv::m_Ladder [private]

Definition at line 57 of file DcsPmtHv.h.

int DcsPmtHv::m_Column [private]

Definition at line 58 of file DcsPmtHv.h.

int DcsPmtHv::m_Ring [private]

Definition at line 59 of file DcsPmtHv.h.

float DcsPmtHv::m_Voltage [private]

Definition at line 60 of file DcsPmtHv.h.

int DcsPmtHv::m_Power [private]

Definition at line 61 of file DcsPmtHv.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:57:12 for DcsDataSvc by doxygen 1.7.4