SORTIE Core C++ Documentation
|
Package Class This class is for packages, which are used by grids. More...
#include <Grid.h>
Public Member Functions | |
clPackage * | GetNextPackage () |
Returns the next package in the linked list. More... | |
void | SetValue (short int iCode, int iValue) |
Sets the value of an integer data member. More... | |
void | SetValue (short int iCode, float fValue) |
Sets the value of a float data member. More... | |
void | SetValue (short int iCode, bool bValue) |
Sets the value of a bool data member. More... | |
void | SetValue (short int iCode, std::string sValue) |
Sets the value of a string data member. More... | |
void | GetValue (short int iCode, int *p_iValHolder) |
Gets the value of an integer data member. More... | |
void | GetValue (short int iCode, float *p_fValHolder) |
Gets the value of a float data member. More... | |
void | GetValue (short int iCode, bool *p_bValHolder) |
Gets the value of a boolean data member. More... | |
void | GetValue (short int iCode, std::string *p_sValHolder) |
Gets the value of a string data member. More... | |
Protected Member Functions | |
clPackage (clGrid *p_oParentGrid, struct clGrid::stcRecords *p_oParentCell) | |
Constructor. More... | |
~clPackage () | |
Destructor. More... | |
Protected Attributes | |
clGrid * | mp_oParentGrid |
Package's parent grid. More... | |
clGrid::stcRecords * | mp_parentCell |
Package's parent grid cell. More... | |
int * | mp_iIntVals |
Array holding integer values. More... | |
float * | mp_fFloatVals |
Array holding float values. More... | |
std::string * | mp_sStringVals |
Array holding string values. More... | |
bool * | mp_bBoolVals |
Array holding bool values. More... | |
clPackage * | mp_oNext |
Pointer to next package in linked list. More... | |
Friends | |
class | clGrid |
class | clGridTest |
So we can do automated testing. More... | |
Package Class This class is for packages, which are used by grids.
All packages have the same record structure. It depends on its parent grid to set the static member variables.
|
protected |
Constructor.
This will set up the value arrays for the grid cells. Values will be initialized to 0, false, or empty string, as appropriate.
p_oParentGrid | The grid for which this is a package. |
p_oParentCell | The cell which owns this package. |
|
protected |
Destructor.
|
inline |
Returns the next package in the linked list.
Can be used for traversing the linked list.
void clPackage::GetValue | ( | short int | iCode, |
int * | p_iValHolder | ||
) |
Gets the value of an integer data member.
iCode | Data member code. |
p_iValHolder | Address of variable into which to place the requested data member value. |
void clPackage::GetValue | ( | short int | iCode, |
float * | p_fValHolder | ||
) |
Gets the value of a float data member.
iCode | Data member code. |
p_fValHolder | Address of variable into which to place the requested data member value. |
void clPackage::GetValue | ( | short int | iCode, |
bool * | p_bValHolder | ||
) |
Gets the value of a boolean data member.
iCode | Data member code. |
p_bValHolder | Address of variable into which to place the requested data member value. |
void clPackage::GetValue | ( | short int | iCode, |
std::string * | p_sValHolder | ||
) |
Gets the value of a string data member.
iCode | Data member code. |
p_sValHolder | Address of variable into which to place the requested data member value. |
void clPackage::SetValue | ( | short int | iCode, |
int | iValue | ||
) |
Sets the value of an integer data member.
iCode | Data member code. |
iValue | Value to set. |
void clPackage::SetValue | ( | short int | iCode, |
float | fValue | ||
) |
Sets the value of a float data member.
iCode | Data member code. |
fValue | Value to set. |
void clPackage::SetValue | ( | short int | iCode, |
bool | bValue | ||
) |
Sets the value of a bool data member.
iCode | Data member code. |
bValue | Value to set. |
void clPackage::SetValue | ( | short int | iCode, |
std::string | sValue | ||
) |
Sets the value of a string data member.
iCode | Data member code. |
sValue | Value to set. |
|
friend |
|
friend |
So we can do automated testing.
|
protected |
Array holding bool values.
Size is m_iNumBoolVals.
|
protected |
Array holding float values.
Size is m_iNumFloatVals.
|
protected |
Array holding integer values.
Size is m_iNumIntVals.
|
protected |
Pointer to next package in linked list.
|
protected |
Package's parent grid.
|
protected |
Package's parent grid cell.
|
protected |
Array holding string values.
Size is m_iNumStringVals.