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

#include <Workspace/DataExecution/Connections/adaptedconnection.h>

Inherits ConnectionImplBase.

Public Member Functions

 AdaptedConnection (ConnectionImpl &impl)
 
 ~AdaptedConnection () override
 
QAction * getConfigureAction (QObject *parent) override
 
bool load (const SerializedItem &item) override
 
bool save (SerializedItem &item) const override
 
bool update (Updater *updater) override
 

Constructor & Destructor Documentation

◆ AdaptedConnection()

AdaptedConnection ( ConnectionImpl &  impl)

◆ ~AdaptedConnection()

~AdaptedConnection ( )
override

Member Function Documentation

◆ getConfigureAction()

QAction * getConfigureAction ( QObject *  parent)
override

◆ load()

bool load ( const SerializedItem item)
override

◆ save()

bool save ( SerializedItem item) const
override

◆ update()

bool update ( Updater updater)
override

The update first ensures that there is valid data at the destination. It then performs the assignment using a adaptor.

The destination still owns the data it points to, so if the connection is removed, the destination keeps the last value that was provided to it.