#include <GridBase.h>
Public Member Functions | |
| clPackage * | GetNextPackage () |
| Returns the next package in the linked list. | |
| void | SetValue (short int iCode, int iValue) |
| Sets the value of an integer data member. | |
| void | SetValue (short int iCode, float fValue) |
| Sets the value of a float data member. | |
| void | SetValue (short int iCode, bool bValue) |
| Sets the value of a bool data member. | |
| void | SetValue (short int iCode, char *cValue) |
| Sets the value of a char data member. | |
| void | GetValue (short int iCode, int *p_iValHolder) |
| Gets the value of an integer data member. | |
| void | GetValue (short int iCode, float *p_fValHolder) |
| Gets the value of a float data member. | |
| void | GetValue (short int iCode, bool *p_bValHolder) |
| Gets the value of a boolean data member. | |
| void | GetValue (short int iCode, char *p_cValHolder) |
| Gets the value of a char data member. | |
Protected Member Functions | |
| clPackage (clGridBase *p_oParentGrid, struct clGridBase::stcRecords *p_oParentCell) | |
| Constructor. | |
| ~clPackage () | |
| Destructor. | |
Protected Attributes | |
| clGridBase * | mp_oParentGrid |
| Package's parent grid. | |
| clGridBase::stcRecords * | mp_parentCell |
| Package's parent grid cell. | |
| int * | mp_iIntVals |
| Array holding integer values. | |
| float * | mp_fFloatVals |
| Array holding float values. | |
| char ** | mp_cCharVals |
| Array holding char values. | |
| bool * | mp_bBoolVals |
| Array holding bool values. | |
| clPackage * | mp_oNext |
| Pointer to next package in linked list. | |
Friends | |
| class | clGridBase |
| class | clGridTest |
| So we can do automated testing. | |
All packages have the same record structure. It depends on its parent grid to set the static member variables.
| clPackage::clPackage | ( | clGridBase * | p_oParentGrid, | |
| struct clGridBase::stcRecords * | p_oParentCell | |||
| ) | [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. |
| clPackage::~clPackage | ( | ) | [protected] |
Destructor.
| clPackage* clPackage::GetNextPackage | ( | ) | [inline] |
Returns the next package in the linked list.
Can be used for traversing the linked list.
| 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, | |
| char * | cValue | |||
| ) |
Sets the value of a char data member.
| iCode | Data member code. | |
| cValue | Value to set. |
| 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, | |
| char * | p_cValHolder | |||
| ) |
Gets the value of a char data member.
| iCode | Data member code. | |
| p_cValHolder | Address of variable into which to place the requested data member value. |
friend class clGridBase [friend] |
friend class clGridTest [friend] |
So we can do automated testing.
clGridBase* clPackage::mp_oParentGrid [protected] |
Package's parent grid.
clGridBase::stcRecords* clPackage::mp_parentCell [protected] |
Package's parent grid cell.
int* clPackage::mp_iIntVals [protected] |
Array holding integer values.
Size is m_iNumIntVals.
float* clPackage::mp_fFloatVals [protected] |
Array holding float values.
Size is m_iNumFloatVals.
char** clPackage::mp_cCharVals [protected] |
Array holding char values.
Size is m_iNumCharVals.
bool* clPackage::mp_bBoolVals [protected] |
Array holding bool values.
Size is m_iNumBoolVals.
clPackage* clPackage::mp_oNext [protected] |
Pointer to next package in linked list.
1.5.2