Project::GetOperationObject

Description

Get operation object from specified object

Syntax

OperationBase & GetOperationObject( UINT uid, LPCSTR lpcszGUID = NULL )

Parameters

uid
[input]operation ID
lpcszGUID
[input]defaut value is NULL

Return

Operation object

Examples

EX1

///Before run this example. Pls create a worksheet, set some numbers and do some analysis like Fit Linear.
void Project_GetOperationObject_ex1()
{
        Worksheet wks = Project.ActiveLayer();
        if(wks)
        {
                vector<uint> unOpIDs;
            if( wks.FindIncomingOperations(unOpIDs) <= 0 )
                return;
            
            OperationBase& op = Project.GetOperationObject(unOpIDs[0]);
            if(op)
            {
                out_str("Class Name -- " + op.GetClassName());
            }
        }
}

Remark

See Also

Project::GetObject

Header to Include

origin.h