2.2.4.31.3 OperationManager::GetOperation

Description

Get an Operation with specified index from OperationManager.


Syntax

OperationBase&		GetOperation(int nIndex);

Parameters

nIndex
[input] the 0-Offset index of operation.

Return

a valid operation wrapper that represent the internal operation object

Examples

//List all the operations in the project.
//Before run this function, do some analysis operations, such as linear fit.
void OperationManager_GetOperation_Ex1()
{
    OperationManager opManager;
	opManager = Project.Operations;
 
	int count = opManager.GetCount();
	for(int index=0; index < count; index++)
	{		
		OperationBase& op = opManager.GetOperation(index);
		string strName = op.GetName();
		out_str(strName);
	}
}

Remark

See Also

OperationManager::FindOutgoingOperation

Header to Include

origin.h