SORTIE C++ Test Documentation
|
#include <fstream>
Functions | |
const char * | WriteInsectInfestationXMLNormalFile (int iNumYrsTimestep, int iTSStart, int iTSEnd) |
Writes the parameter file for TestNormalProcessingX(). More... | |
const char * | WriteInsectInfestationXMLFile3 () |
Writes the parameter file for TestNormalProcessing3(). More... | |
const char * | WriteInsectInfestationXMLErrorFile1 () |
Writes an error file where the minimum DBH is negative. More... | |
const char * | WriteInsectInfestationXMLErrorFile2 () |
Writes an error file where the insect infestation behavior is applied to seedlings. More... | |
const char * | WriteInsectInfestationXMLErrorFile3 () |
Writes an error file where the timestep to start infestation is negative. More... | |
const char * | WriteInsectInfestationXMLErrorFile4 () |
Writes an error file where the intercept is not between 0 and 1. More... | |
const char * | WriteInsectInfestationXMLErrorFile5 () |
Writes an error file where max infestation is not between 0 and 1. More... | |
const char * | WriteInsectInfestationXMLErrorFile6 () |
Writes an error file where X0 = zero. More... | |
void | WriteInsectInfestationErrorCommonStuff (std::fstream &oOut) |
Writes common portions of the test parameter files. More... | |
void | GetTreeCount1Yr (clTreePopulation *p_oPop, long *p_iTotal, long *p_iInfested, bool bNoInfestation) |
Counts trees. More... | |
void | GetTreeCount3Yrs (clTreePopulation *p_oPop, long *p_iTotal, long *p_iInfested, bool bNoInfestation) |
Counts trees. More... | |
void GetTreeCount1Yr | ( | clTreePopulation * | p_oPop, |
long * | p_iTotal, | ||
long * | p_iInfested, | ||
bool | bNoInfestation | ||
) |
Counts trees.
p_oPop | Tree population |
p_iTotal | Total trees per species, sized 5. |
p_iInfested | Infested trees per species, sized 5. |
bNoInfestation | If true, there will be no checking of the years infested value. |
void GetTreeCount3Yrs | ( | clTreePopulation * | p_oPop, |
long * | p_iTotal, | ||
long * | p_iInfested, | ||
bool | bNoInfestation | ||
) |
Counts trees.
p_oPop | Tree population |
p_iTotal | Total trees per species, sized 5. |
p_iInfested | Infested trees per species, sized 5. |
bNoInfestation | If true, there will be no checking of the years infested value. |
void WriteInsectInfestationErrorCommonStuff | ( | std::fstream & | oOut | ) |
Writes common portions of the test parameter files.
oOut | File stream to write to. |
const char* WriteInsectInfestationXMLErrorFile1 | ( | ) |
Writes an error file where the minimum DBH is negative.
const char* WriteInsectInfestationXMLErrorFile2 | ( | ) |
Writes an error file where the insect infestation behavior is applied to seedlings.
const char* WriteInsectInfestationXMLErrorFile3 | ( | ) |
Writes an error file where the timestep to start infestation is negative.
const char* WriteInsectInfestationXMLErrorFile4 | ( | ) |
Writes an error file where the intercept is not between 0 and 1.
const char* WriteInsectInfestationXMLErrorFile5 | ( | ) |
Writes an error file where max infestation is not between 0 and 1.
const char* WriteInsectInfestationXMLErrorFile6 | ( | ) |
Writes an error file where X0 = zero.
const char* WriteInsectInfestationXMLFile3 | ( | ) |
Writes the parameter file for TestNormalProcessing3().
const char* WriteInsectInfestationXMLNormalFile | ( | int | iNumYrsTimestep, |
int | iTSStart, | ||
int | iTSEnd | ||
) |
Writes the parameter file for TestNormalProcessingX().
iNumYrsTimestep | Number of years per timestep. |
iTSStart | Timestep to start infection. |
iTSEnd | Timestep to end infection. If it is 0, it won't be written at all (to check backwards compatibility). |