Dcs_Env_Far Class Reference

#include <Dcs_Env_Far.h>

Inheritance diagram for Dcs_Env_Far:
DbiTableRow

List of all members.

Public Member Functions

 Dcs_Env_Far ()
 Dcs_Env_Far (const Dcs_Env_Far &from)
 Dcs_Env_Far (Float_t a, Float_t b, Float_t c, Float_t d, Float_t e, Float_t f, Float_t g, Float_t h, Float_t i, Float_t j)
virtual ~Dcs_Env_Far ()
Bool_t CanL2Cache () const
Bool_t Compare (const Dcs_Env_Far &that) const
Float_t GetTemp1 () const
Float_t GetHumid1 () const
Float_t GetRadon1 () const
Float_t GetPres1 () const
Float_t GetTemp2 () const
Float_t GetHumid2 () const
Float_t GetRadon2 () const
Float_t GetPres2 () const
Float_t GetRadonFact1 () const
Float_t GetRadonFact2 () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const
virtual DbiTableRowCreateTableRow () const

Private Attributes

Float_t fTemp1
Float_t fHumid1
Float_t fRadon1
Float_t fPres1
Float_t fTemp2
Float_t fHumid2
Float_t fRadon2
Float_t fPres2
Float_t fRadonFact1
Float_t fRadonFact2

Detailed Description

Definition at line 11 of file Dcs_Env_Far.h.


Constructor & Destructor Documentation

Dcs_Env_Far::Dcs_Env_Far (  )  [inline]

Definition at line 18 of file Dcs_Env_Far.h.

00018 { }

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

Definition at line 19 of file Dcs_Env_Far.h.

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

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

Definition at line 20 of file Dcs_Env_Far.h.

00020                                                                                                                      :
00021    fTemp1(a),fHumid1(b),fRadon1(c),fPres1(d),fTemp2(e),fHumid2(f),fRadon2(g),fPres2(h),fRadonFact1(i),fRadonFact2(j){ }
  virtual ~Dcs_Env_Far(){ };

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

Definition at line 22 of file Dcs_Env_Far.h.

00022 { };


Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 26 of file Dcs_Env_Far.h.

00026 { return kTRUE; }

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

Definition at line 27 of file Dcs_Env_Far.h.

References fHumid1, fHumid2, fPres1, fPres2, fRadon1, fRadon2, fRadonFact1, fRadonFact2, fTemp1, and fTemp2.

00027                                                  {
00028                 return     fTemp1    == that.fTemp1
00029                        &&  fHumid1   == that.fHumid1
00030                        &&  fRadon1   == that.fRadon1
00031                        &&  fPres1    == that.fPres1
00032                        &&  fTemp2    == that.fTemp2
00033                        &&  fHumid2   == that.fHumid2
00034                        &&  fRadon2   == that.fRadon2
00035                        &&  fPres2    == that.fPres2
00036                        &&  fRadonFact1   == that.fRadonFact1
00037                        &&  fRadonFact2   == that.fRadonFact2; }

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

Implements DbiTableRow.

Definition at line 56 of file Dcs_Env_Far.h.

00056 { return new Dcs_Env_Far; }

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

Implements DbiTableRow.

Definition at line 30 of file Dcs_Env_Far.cxx.

References fHumid1, fHumid2, fPres1, fPres2, fRadon1, fRadon2, fRadonFact1, fRadonFact2, fTemp1, and fTemp2.

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_ENV_FAR" 
00047 //       && rs.TableName() != "Dcs_Env_Far" ) {
00048     
00049 // Dumb method.
00050           rs >> fTemp1 >> fHumid1 >> fRadon1 >> fPres1 >> fTemp2 >> fHumid2 >> fRadon2 >> fPres2 >> fRadonFact1 >> fRadonFact2;
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 == "FAR_TEMPERATURE1" ) rs >> fTemp1;
00061       else if ( colName == "FAR_HUMIDITY1" )  rs >> fHumid1;
00062       else if ( colName == "FAR_RADON1" )     rs >> fRadon1;
00063       else if ( colName == "FAR_PRESSURE1" )     rs >> fPres1;
00064       else if ( colName == "FAR_TEMPERATURE2" ) rs >> fTemp2;
00065       else if ( colName == "FAR_HUMIDITY2" )  rs >> fHumid2;
00066       else if ( colName == "FAR_RADON2" )     rs >> fRadon2;
00067       else if ( colName == "FAR_PRESSURE2" )     rs >> fPres2;
00068       else {
00069         MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00070                                << "(" << colName << ")"
00071                               << "; not part of DcsEnvFar" << endl;
00072         rs.IncrementCurCol();
00073       }
00074     }
00075     
00076   }
00077 */
00078 }

Float_t Dcs_Env_Far::GetHumid1 (  )  const [inline]

Definition at line 41 of file Dcs_Env_Far.h.

References fHumid1.

00041 { return fHumid1; }

Float_t Dcs_Env_Far::GetHumid2 (  )  const [inline]

Definition at line 45 of file Dcs_Env_Far.h.

References fHumid2.

00045 { return fHumid2; }

Float_t Dcs_Env_Far::GetPres1 (  )  const [inline]

Definition at line 43 of file Dcs_Env_Far.h.

References fPres1.

00043 { return  fPres1; }

Float_t Dcs_Env_Far::GetPres2 (  )  const [inline]

Definition at line 47 of file Dcs_Env_Far.h.

References fPres2.

00047 { return  fPres2; }

Float_t Dcs_Env_Far::GetRadon1 (  )  const [inline]

Definition at line 42 of file Dcs_Env_Far.h.

References fRadon1.

00042 { return fRadon1; }

Float_t Dcs_Env_Far::GetRadon2 (  )  const [inline]

Definition at line 46 of file Dcs_Env_Far.h.

References fRadon2.

00046 { return fRadon2; }

Float_t Dcs_Env_Far::GetRadonFact1 (  )  const [inline]

Definition at line 48 of file Dcs_Env_Far.h.

References fRadonFact1.

00048 { return fRadonFact1; }

Float_t Dcs_Env_Far::GetRadonFact2 (  )  const [inline]

Definition at line 49 of file Dcs_Env_Far.h.

References fRadonFact2.

00049 { return fRadonFact2; }

Float_t Dcs_Env_Far::GetTemp1 (  )  const [inline]

Definition at line 40 of file Dcs_Env_Far.h.

References fTemp1.

Referenced by TemperatureCalScheme::GetTemperature(), and InfoChain::RemoveTemperatureEffects().

00040 { return fTemp1; }

Float_t Dcs_Env_Far::GetTemp2 (  )  const [inline]

Definition at line 44 of file Dcs_Env_Far.h.

References fTemp2.

Referenced by TemperatureCalScheme::GetTemperature(), and InfoChain::RemoveTemperatureEffects().

00044 { return fTemp2; }

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

Reimplemented from DbiTableRow.

Definition at line 81 of file Dcs_Env_Far.cxx.

References fHumid1, fHumid2, fPres1, fPres2, fRadon1, fRadon2, fRadonFact1, fRadonFact2, fTemp1, and fTemp2.

00082                                                                  {
00083 //  Purpose:  Stream object to output row stream
00084 //
00085 //  Arguments: 
00086 //    ors          in     Output row stream.
00087 //    vrec         in    Associated validity record (or 0 if filling
00088 //                                                    DbiValidityRec)
00089 //  o  Stream object to output row stream.
00090 
00091   ors << fTemp1 << fHumid1 << fRadon1 << fPres1 << fTemp2 << fHumid2 << fRadon2 << fPres2 << fRadonFact1 << fRadonFact2;
00092 }


Member Data Documentation

Float_t Dcs_Env_Far::fHumid1 [private]

Definition at line 62 of file Dcs_Env_Far.h.

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

Float_t Dcs_Env_Far::fHumid2 [private]

Definition at line 66 of file Dcs_Env_Far.h.

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

Float_t Dcs_Env_Far::fPres1 [private]

Definition at line 64 of file Dcs_Env_Far.h.

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

Float_t Dcs_Env_Far::fPres2 [private]

Definition at line 68 of file Dcs_Env_Far.h.

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

Float_t Dcs_Env_Far::fRadon1 [private]

Definition at line 63 of file Dcs_Env_Far.h.

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

Float_t Dcs_Env_Far::fRadon2 [private]

Definition at line 67 of file Dcs_Env_Far.h.

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

Float_t Dcs_Env_Far::fRadonFact1 [private]

Definition at line 69 of file Dcs_Env_Far.h.

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

Float_t Dcs_Env_Far::fRadonFact2 [private]

Definition at line 70 of file Dcs_Env_Far.h.

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

Float_t Dcs_Env_Far::fTemp1 [private]

Definition at line 61 of file Dcs_Env_Far.h.

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

Float_t Dcs_Env_Far::fTemp2 [private]

Definition at line 65 of file Dcs_Env_Far.h.

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