Workspace 6.21.5
Public Member Functions | List of all members
AddConnectionCmd Class Reference

Command class for adding a connection to a workspace view.

#include <Workspace/DataExecution/UndoCommands/addconnectioncmd.h>

Inheritance diagram for AddConnectionCmd:
[legend]

Public Member Functions

 AddConnectionCmd (Workspace &workspace, Output &src, InputScalar &dest)
 
 AddConnectionCmd (Workspace &workspace, Output &src, InputScalar &dest, const SerializedItem &item)
 
 ~AddConnectionCmd () override
 
void redo () override
 
void undo () override
 

Constructor & Destructor Documentation

◆ AddConnectionCmd() [1/2]

AddConnectionCmd ( Workspace workspace,
Output src,
InputScalar dest 
)
Parameters
workspaceThe workspace in which the connection will be added.
srcThe source of the connection. This output must belong to an operation that is already contained in workspace.
destThe destination of the connection. This input must belong to an operation that is already contained in workspace.

◆ AddConnectionCmd() [2/2]

AddConnectionCmd ( Workspace workspace,
Output src,
InputScalar dest,
const SerializedItem item 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
workspaceThe workspace in which the connection will be added.
srcThe source of the connection. This output must belong to an operation that is already contained in workspace.
destThe destination of the connection. This input must belong to an operation that is already contained in workspace.
itemSerialized information for the connection. When the connection is created, it will load this item to provide further customization (eg anchor and adaptor info).

◆ ~AddConnectionCmd()

~AddConnectionCmd ( )
override

Member Function Documentation

◆ redo()

void redo ( )
override

◆ undo()

void undo ( )
override