00001 #ifndef scRun_H 00002 #define scRun_H 1 00003 00008 #include <time.h> 00009 #include <vector> 00010 00011 class hvChannel; 00012 class tProbe; 00013 class tHybrid; 00014 class beetle; 00015 class chiller; 00016 class TTC; 00017 00018 class scRun{ 00019 00020 public: 00021 00022 typedef std::vector<hvChannel*> HV; 00023 typedef std::vector<beetle*> Beetles; 00024 typedef std::vector<tProbe*> Probes; 00025 typedef std::vector<tHybrid*> tHybrids; 00026 00027 scRun(time_t timeStamp); 00028 00029 ~scRun(); 00030 00031 time_t timestamp() const; 00032 00033 HV& hvChannels(); 00034 const HV& hvChannels() const; 00035 void addToHV(hvChannel* aChan); 00036 00037 Beetles& beetles(); 00038 const Beetles& beetles() const; 00039 void addToBeetles(beetle* ringo); 00040 00041 Probes& probes(); 00042 const Probes& probes() const; 00043 void addToProbes(tProbe* tP); 00044 00045 tHybrids& tempH(); 00046 const tHybrids& tempH() const; 00047 void addTotHybrids(tHybrid* tH); 00048 00049 chiller* getChiller() const ; 00050 00051 void setChiller(chiller* aChiller); 00052 00053 void setTTC(TTC* aTTC); 00054 00055 TTC* getTTC() const; 00056 00057 00058 private: 00059 00060 time_t m_time; 00061 HV m_hvInfo; 00062 Beetles m_beetles; 00063 Probes m_probes; 00064 tHybrids m_hybrids; 00065 00066 chiller* m_chiller; 00067 TTC* m_ttc; 00068 00069 }; 00070 00071 #include "beetle.h" 00072 #include "chiller.h" 00073 #include "TTC.h" 00074 #include "tProbe.h" 00075 #include "tHybrid.h" 00076 #include "hvChannel.h" 00077 00078 inline time_t scRun::timestamp() const{ 00079 return m_time; 00080 } 00081 00082 inline scRun::HV& scRun::hvChannels() { 00083 return m_hvInfo; 00084 } 00085 00086 inline const scRun::HV& scRun::hvChannels() const{ 00087 return m_hvInfo; 00088 } 00089 00090 inline void scRun::addToHV(hvChannel* aChan){ 00091 m_hvInfo.push_back(aChan); 00092 } 00093 00094 inline scRun::Beetles& scRun::beetles() { 00095 return m_beetles; 00096 } 00097 00098 inline const scRun::Beetles& scRun::beetles() const{ 00099 return m_beetles; 00100 } 00101 00102 inline void scRun::addToBeetles(beetle* ringo){ 00103 m_beetles.push_back(ringo); 00104 } 00105 00106 inline scRun::Probes& scRun::probes() { 00107 return m_probes; 00108 } 00109 00110 inline const scRun::Probes& scRun::probes() const{ 00111 return m_probes; 00112 } 00113 00114 inline void scRun::addToProbes(tProbe* tP){ 00115 m_probes.push_back(tP); 00116 } 00117 00118 00119 inline scRun::tHybrids& scRun::tempH() { 00120 return m_hybrids; 00121 } 00122 00123 inline const scRun::tHybrids& scRun::tempH() const{ 00124 return m_hybrids; 00125 } 00126 00127 inline void scRun::addTotHybrids(tHybrid* tH){ 00128 m_hybrids.push_back(tH); 00129 } 00130 00131 inline chiller* scRun::getChiller() const{ 00132 return m_chiller; 00133 } 00134 00135 inline void scRun::setChiller(chiller* aChiller){ 00136 m_chiller = aChiller; 00137 } 00138 00139 inline TTC* scRun::getTTC() const{ 00140 return m_ttc; 00141 } 00142 00143 inline void scRun::setTTC(TTC* aTTC){ 00144 m_ttc = aTTC; 00145 } 00146 00147 #endif