SORTIE C++ Test Documentation
Public Member Functions | Protected Member Functions | List of all members
clTestGrids Class Reference

Tests grids. More...

#include <TestGrids.h>

Inheritance diagram for clTestGrids:

Public Member Functions

void TestGrids ()
 Comprehensive tester.
 

Protected Member Functions

void TestGetAverage (clGrid *p_oGrid)
 Tests the GetAverage methods.
 
void TestGetCoordinates (clGrid *p_oGrid)
 Tests to make sure that the grid cell coordinate calculation methods work.
 
clGrid * CreateGrid (clSimManager *p_oSimManager)
 Creates a grid and initializes it with values.
 
const char * WriteXMLFile1 ()
 Writes an XML file that will create the sim manager so we can create a grid through the proper channels.
 

Detailed Description

Tests grids.

Member Function Documentation

clGrid* clTestGrids::CreateGrid ( clSimManager *  p_oSimManager)
protected

Creates a grid and initializes it with values.

The two data members are called "int" and "float". The grid cell size is 4X6.

Parameters
p_oSimManagerSim manager.
Returns
Created, initialized grid.
void clTestGrids::TestGetAverage ( clGrid *  p_oGrid)
protected

Tests the GetAverage methods.

Parameters
p_oGridGrid to test.
void clTestGrids::TestGetCoordinates ( clGrid *  p_oGrid)
protected

Tests to make sure that the grid cell coordinate calculation methods work.

This feeds in one number, 13, to both start and end for X and Y.

void clTestGrids::TestGrids ( )

Comprehensive tester.

const char* clTestGrids::WriteXMLFile1 ( )
protected

Writes an XML file that will create the sim manager so we can create a grid through the proper channels.

The plot size is 200X200 m.

Returns
Filename just written.

The documentation for this class was generated from the following file: