ProcUnit::GetMeasureData

Gets the pointer to the memory space where the measurement data of a processing item is stored

MEASUREDATA *GetMeasureData() {
}

Parameters
None.

Return Value
Returns the pointer to the memory space where the measurement data of a processing item is stored.
If failed to get, returns NULL.

Description
Gets the pointer to the memory space where the measurement data of a processing item is stored.

Example
   struct MEASUREDATA {
       double corr; 

       // Correlation value of the measurement result

       int    x;    // Measurement result X
       int    y;    // Measurement result Y
    };

   int Sample::MeasureProc(ProcUnit *ptrProcUnit)
    {

        MEASUREDATA *ptrMeasureData;

        ptrMeasureData = ptrProcUnit->GetMeasureData();

        // Store the measurement result

        ptrMeasureData->corr = 0;
        ptrMeasureData->x = 0;
        ptrMeasureData->y = 0;
    }