00001 //--------------------------------------------------------------------------- 00002 // StormKiller 00003 //--------------------------------------------------------------------------- 00004 #if !defined(StormKiller_H) 00005 #define StormKiller_H 00006 00007 #include "BehaviorBase.h" 00008 00009 class clSimManager; 00010 class DOMDocument; 00011 class clGridBase; 00012 00066 class clStormKiller : virtual public clBehaviorBase { 00067 00068 public: 00069 00075 clStormKiller(clSimManager *p_oSimManager); 00076 00080 ~clStormKiller(); 00081 00094 void GetData(xercesc::DOMDocument *p_oDoc); 00095 00108 void Action(); 00109 00110 protected: 00111 00113 clGridBase *mp_oStormDamageGrid; 00114 00118 char *m_cQuery; 00119 00122 float *mp_fMinStormDBH; 00123 00126 float *mp_fStmDmgMedA; 00127 00130 float *mp_fStmDmgHeavyA; 00131 00134 float *mp_fStmDmgMedB; 00135 00138 float *mp_fStmDmgHeavyB; 00139 00142 float *mp_fPropTipUp; 00143 00146 int **mp_iStmDmgCodes; 00147 00150 int **mp_iDeadCodes; 00151 00153 int m_iSnagYears; 00154 00157 int m_iNumTypes; 00158 00161 int m_iDmgIndexCode; 00162 00172 void GetParameterFileData(xercesc::DOMDocument *p_oDoc); 00173 00178 void FormatQueryString(); 00179 00187 void GetDeadCodes(clTreePopulation *p_oPop); 00188 00197 void GetStmDmgCodes(); 00198 }; 00199 //--------------------------------------------------------------------------- 00200 #endif // StormKiller_H