Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

tProbe.h

Go to the documentation of this file.
00001 #ifndef tProbe_H
00002 #define tProbe_H 1
00003 
00007 #include "SObject.h"
00008 #include <string>
00009 
00010 class tProbe: public SObject{
00011 
00012  public:
00013 
00020   tProbe(const unsigned int id, const double temp, 
00021          const double humidity, const unsigned int box,
00022          const std::string& location );
00023 
00025   tProbe(){}
00026 
00028   virtual ~tProbe(){}
00029 
00031   unsigned int id() const;
00032 
00034   double T() const;
00035 
00037   double humidity() const;
00038 
00040   unsigned box() const;
00041 
00043   std::string location() const;
00044 
00046   void stream(CSVParser& parser);
00047 
00048  private:
00049 
00050   unsigned int m_id;
00051   double m_T;
00052   double m_humidity;
00053   unsigned int m_box;
00054   std::string m_location;
00055 
00056 };
00057 
00058 inline tProbe::tProbe(const unsigned int id, const double temp, 
00059                       const double humidity, const unsigned int box,
00060                       const std::string& location):
00061   m_id(id), 
00062   m_T(temp),
00063   m_humidity(humidity),
00064   m_box(box),
00065   m_location(location)
00066 {
00067   // constructer...
00068 }
00069 
00070 inline unsigned int tProbe::id() const{
00071   return m_id;
00072 }
00073 
00074 inline double tProbe::T() const{
00075   return m_T;
00076 }
00077 
00078 inline double tProbe::humidity() const{
00079   return m_humidity;
00080 }
00081 
00082 inline unsigned int tProbe::box() const{
00083   return m_box;
00084 }
00085 
00086 inline std::string tProbe::location() const{
00087   return m_location;
00088 }
00089 
00090 
00091 #endif

Generated on Fri Jul 8 16:38:52 2005 for Salamander by  doxygen 1.4.1