ProcUnit::GetProcUnit

Gets instance of the processing unit

ProcUnit *GetProcUnit(
   int  unitNo
);
ProcUnit *GetProcUnit(
   int  sceneNo,
   int  unitNo
);

Parameters
unitNo
Unit number to be gotten
sceneNo
Scene number for which the processing unit is obtained

Return Value
Returns the pointer to the instance of the specified processing unit.
If failed to get, returns NULL.

Description
Gets the instance of the processing unit of the specified number.

Example
    int Sample::MeasureProc(ProcUnit *ptrProcUnit)
    {
        ProcUnit *ptrProcUnit1;
        ProcUnit *ptrProcUnit2;

        // Get instance of the processing unit of unit No. 1

        ptrProcUnit1 = ptrProcUnit->GetProcUnit(1);

        // Get instance of the processing unit of unit No. 1, scene No. 1

        ptrProcUnit2 = ptrProcUnit->GetProcUnit(1, 1);

    }