ProcUnit::SetUnitData

Sets processing unit data

int SetUnitData(
   int  dataNo,
   ANYTYPE      *data
)

int SetUnitData(
   TCHAR        *dataIdent,
   ANYTYPE      *data
)

Parameters
dataNo
Data No
*dataIdent
Pointer to the data identification name
*data
Pointer to the setting data

Return Value
Returns 0 when the processing unit data is successfully set.
Otherwise returns a non-zero value.

Description
Performs the setting of the processing unit data of a processing item.

Example
    int Sample::SetUnitData(ProcUnit *ptrProcUnit, int dataNo, ANYTYPE *data)
    {

        // Get the pointer to the inner processing unit

        ProcUnit *ptrInnerUnit = ptrProcUnit->GetInnerUnit(0);

        // Perform the setting of the processing unit data of an inner processing unit

        ptrInnerUnit->SetUnitData(0, data)
    }