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

Dcs_Radon_Level.h

Go to the documentation of this file.
00001 #ifndef DCS_RADON_LEVEL_H
00002 #define DCS_RADON_LEVEL_H
00003 
00004 #include "Rtypes.h"
00005 #include "DatabaseInterface/DbiOutRowStream.h"
00006 #include "DatabaseInterface/DbiResultSet.h"
00007 #include "DatabaseInterface/DbiTableRow.h"
00008 #include "DatabaseInterface/DbiValidityRec.h"
00009 #include "Validity/VldContext.h"
00010 
00011 class DbiValidityRec;
00012 
00013 class Dcs_Radon_Level : public DbiTableRow
00014 {
00015 
00016 public:
00017 // Constructors and destructors.
00018   Dcs_Radon_Level() { }
00019   Dcs_Radon_Level(const Dcs_Radon_Level& from) : DbiTableRow(from) { *this = from; }
00020   Dcs_Radon_Level(VldTimeStamp ts, Float_t rl) : fTimeStamp(ts),fRadonLevel(rl) { }
00021   virtual ~Dcs_Radon_Level(){ };
00022 
00023 
00024 // State testing member functions
00025   Bool_t CanL2Cache() const { return kTRUE; }
00026 
00027   VldTimeStamp GetTimeStamp() const  { return fTimeStamp; }
00028   Float_t      GetRadonLevel() const { return fRadonLevel; }
00029   Bool_t       IsValidEntry() const  { return fRadonLevel > 0.; }
00030 
00031 // I/O  member functions
00032   virtual void Fill(DbiResultSet& rs, const DbiValidityRec* vrec);
00033   virtual void Store(DbiOutRowStream& ors, const DbiValidityRec* vrec) const;
00034 
00035   virtual DbiTableRow* CreateTableRow() const { return new Dcs_Radon_Level; }
00036 
00037 private:  
00038 
00039 // Data members
00040 
00041     VldTimeStamp  fTimeStamp;
00042     Float_t       fRadonLevel;  // If < 0. entry from ASCII text file invalid: -1. empty/blank, -2. EOF, -3. any other invalid entry
00043 
00044     ClassDef(Dcs_Radon_Level,0)
00045 
00046 };
00047 
00048 #endif  // DCS_RADON_LEVEL_H

Generated on Mon Feb 15 11:06:36 2010 for loon by  doxygen 1.3.9.1