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

Functions

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

Function Documentation

◆ TestStormDamageApplierRun1Timestep1()

void TestStormDamageApplierRun1Timestep1 ( clTreePopulation *  p_oPop)

Tests the clStormDamageApplier class.

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

Parameters
p_oPopTree population object.

◆ TestStormDamageApplierRun1Timestep2()

void TestStormDamageApplierRun1Timestep2 ( clTreePopulation *  p_oPop)

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

Parameters
p_oPopTree population object.

◆ TestStormDamageApplierRun1Timestep3()

void TestStormDamageApplierRun1Timestep3 ( clTreePopulation *  p_oPop)

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

Parameters
p_oPopTree population object.

◆ TestStormDamageApplierRun1Timestep4()

void TestStormDamageApplierRun1Timestep4 ( clTreePopulation *  p_oPop)

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

Parameters
p_oPopTree population object.

◆ TestStormDamageApplierRun1Timestep5()

void TestStormDamageApplierRun1Timestep5 ( clTreePopulation *  p_oPop)

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

Parameters
p_oPopTree population object.

◆ WriteStormDamageApplierBehaviorList()

void WriteStormDamageApplierBehaviorList ( std::fstream &  oOut)

Writes the behavior list for the test parameter files.

Parameters
oOutFile stream to write to.

◆ WriteStormDamageApplierCommonStuff()

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.

◆ WriteStormDamageApplierXMLErrorFile1()

const char* WriteStormDamageApplierXMLErrorFile1 ( )

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

Returns
File name of the freshly written parameter file.

◆ WriteStormDamageApplierXMLErrorFile2()

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.

◆ WriteStormDamageApplierXMLErrorFile3()

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.

◆ WriteStormDamageApplierXMLFile1()

const char* WriteStormDamageApplierXMLFile1 ( )

Writes the parameter file for TestNormalProcessing1().

Returns
File name of the freshly written parameter file.

◆ WriteStormDamageApplierXMLFile2()

const char* WriteStormDamageApplierXMLFile2 ( )

Writes the parameter file for TestNormalProcessing2().

Returns
File name of the freshly written parameter file.

◆ WriteStormDamageApplierXMLFile3()

const char* WriteStormDamageApplierXMLFile3 ( )

Writes the parameter file for MakeGraphs().

Returns
File name of the freshly written parameter file.