00001 //--------------------------------------------------------------------------- 00002 00003 #ifndef BCMortH 00004 #define BCMortH 00005 //--------------------------------------------------------------------------- 00006 #include "MortalityBase.h" 00024 class clBCMort : virtual public clMortalityBase { 00025 //note: need the virtual keyword to avoid base class ambiguity. 00026 00027 public: 00028 00032 clBCMort(clSimManager *p_oSimManager); 00033 00037 ~clBCMort(); 00038 00045 void DoShellSetup(xercesc::DOMDocument *p_oDoc); 00046 00055 bool DoMort(clTree *p_oTree, const float &fDbh, const short int &iSpecies); 00056 00057 protected: 00058 00059 short int **mp_iGrowthCodes; 00061 float *mp_fMortAtZeroGrowth; 00062 float *mp_fLightDepMort; 00063 float m_fNumberYearsPerTimestep; 00072 void GetGrowthVariableCodes(); 00073 }; 00074 //--------------------------------------------------------------------------- 00075 #endif