SORTIE C++ Test Documentation
Functions
TestStormDamageApplier.h File Reference
#include <fstream>

Functions

void TestStormDamageApplierRun1Timestep1 (clTreePopulation *p_oPop)
 Tests the clStormDamageApplier class.
 
void TestStormDamageApplierRun1Timestep2 (clTreePopulation *p_oPop)
 Checks the expected results for timestep 2 of TestNormalProcessingRun1().
 
void TestStormDamageApplierRun1Timestep3 (clTreePopulation *p_oPop)
 Checks the expected results for timestep 3 of TestNormalProcessingRun1().
 
void TestStormDamageApplierRun1Timestep4 (clTreePopulation *p_oPop)
 Checks the expected results for timestep 4 of TestNormalProcessingRun1().
 
void TestStormDamageApplierRun1Timestep5 (clTreePopulation *p_oPop)
 Checks the expected results for timestep 5 of TestNormalProcessingRun1().
 
const char * WriteStormDamageApplierXMLFile1 ()
 Writes the parameter file for TestNormalProcessing1().
 
const char * WriteStormDamageApplierXMLFile2 ()
 Writes the parameter file for TestNormalProcessing2().
 
const char * WriteStormDamageApplierXMLFile3 ()
 Writes the parameter file for MakeGraphs().
 
const char * WriteStormDamageApplierXMLErrorFile1 ()
 Writes an error file where the storm behavior is not also enabled.
 
const char * WriteStormDamageApplierXMLErrorFile2 ()
 Writes an error file where the storm damage applier behavior is applied to seedlings.
 
const char * WriteStormDamageApplierXMLErrorFile3 ()
 Writes an error file where the value for number of years to heal is not positive.
 
void WriteStormDamageApplierCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files.
 
void WriteStormDamageApplierBehaviorList (std::fstream &oOut)
 Writes the behavior list for the test parameter files.
 

Function Documentation

void TestStormDamageApplierRun1Timestep1 ( clTreePopulation *  p_oPop)

Tests the clStormDamageApplier class.

Checks the expected results for timestep 1 of TestNormalProcessingRun1().

Parameters
p_oPopTree population object.
void TestStormDamageApplierRun1Timestep2 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 2 of TestNormalProcessingRun1().

Parameters
p_oPopTree population object.
void TestStormDamageApplierRun1Timestep3 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 3 of TestNormalProcessingRun1().

Parameters
p_oPopTree population object.
void TestStormDamageApplierRun1Timestep4 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 4 of TestNormalProcessingRun1().

Parameters
p_oPopTree population object.
void TestStormDamageApplierRun1Timestep5 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 5 of TestNormalProcessingRun1().

Parameters
p_oPopTree population object.
void WriteStormDamageApplierBehaviorList ( std::fstream &  oOut)

Writes the behavior list for the test parameter files.

Parameters
oOutFile stream to write to.
void WriteStormDamageApplierCommonStuff ( std::fstream &  oOut)

Writes common portions of the test parameter files.

Starts with <randomSeed> and ends with </allometry>.

Parameters
oOutFile stream to write to.
const char* WriteStormDamageApplierXMLErrorFile1 ( )

Writes an error file where the storm behavior is not also enabled.

Returns
File name of the freshly written parameter file.
const char* WriteStormDamageApplierXMLErrorFile2 ( )

Writes an error file where the storm damage applier behavior is applied to seedlings.

Returns
File name of the freshly written parameter file.
const char* WriteStormDamageApplierXMLErrorFile3 ( )

Writes an error file where the value for number of years to heal is not positive.

Returns
File name of the freshly written parameter file.
const char* WriteStormDamageApplierXMLFile1 ( )

Writes the parameter file for TestNormalProcessing1().

Returns
File name of the freshly written parameter file.
const char* WriteStormDamageApplierXMLFile2 ( )

Writes the parameter file for TestNormalProcessing2().

Returns
File name of the freshly written parameter file.
const char* WriteStormDamageApplierXMLFile3 ( )

Writes the parameter file for MakeGraphs().

Returns
File name of the freshly written parameter file.