v2.34
 
IOperation Interface Reference

This class contains functions to edit a Renga project. More...

Inheritance diagram for IOperation:

Public Member Functions

HRESULT Apply ()
 Commits the changes made to objects.
 
HRESULT Rollback ()
 Discards any changes made to objects since the operation started.
 
HRESULT Start ()
 Starts an operation.
 

Detailed Description

This class contains functions to edit a Renga project.

Use this class to edit a Renga project.

Changes are applied to the project only if the operation was started beforehand. A new operation cannot be started while there is an active operation in progress. (An active operation is an operation that has been started but has not been applied or rolled back yet). See IProject::HasActiveOperation.

When an operation is applied, all changes made to the project since the operation started get accepted. Each applied operation pushes a new record into Renga's undo queue, it allows the user to revert the changes.

This interface can be obtained through IProject::CreateOperation.

Member Function Documentation

◆ Apply()

HRESULT Apply ( )

Commits the changes made to objects.

Only active opertaions can be applied.

◆ Rollback()

HRESULT Rollback ( )

Discards any changes made to objects since the operation started.

It is impossible to roll the changes back after the operation is applied.

◆ Start()

HRESULT Start ( )

Starts an operation.

You should start an operation before modifying any model objects.