    

 ## On this page

  

 

 # DataTransfer

 Last update: 17.07.2025 

<a name="l00001"></a> 1 /\*

<a name="l00002"></a> 2  \* Copyright ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

<a name="l00003"></a> 3  \*/

<a name="l00004"></a> 4 

<a name="l00005"></a> 5 \#pragma once

<a name="l00006"></a> 6 

<a name="l00007"></a> 7 \#include "SystemCouplingParticipant/LibraryType.hpp"

<a name="l00008"></a> 8 

<a name="l00009"></a> 9 \#include "SystemCouplingParticipant/CommonTypes.hpp"

<a name="l00010"></a> 10 \#include "SystemCouplingParticipant/Variable.hpp"

<a name="l00011"></a> 11 

<a name="l00012"></a> 12 namespace sysc {

<a name="l00013"></a> 13 

<a name="l00021"></a>[ 21](classsysc_1_1DataTransfer.xhtml) class SYSTEM_COUPLING_PARTICIPANT_DLL [DataTransfer](classsysc_1_1DataTransfer.xhtml) {

<a name="l00022"></a> 22 public:

<a name="l00032"></a>[ 32](classsysc_1_1DataTransfer.xhtml#a9a4412f47dbd13ece79d35b0876ace13) [DataTransfer](classsysc_1_1DataTransfer.xhtml#a9a4412f47dbd13ece79d35b0876ace13)(

<a name="l00033"></a> 33 [Variable](classsysc_1_1Variable.xhtml) sourceVariable,

<a name="l00034"></a> 34 [Variable](classsysc_1_1Variable.xhtml) targetVariable,

<a name="l00035"></a> 35 enum [InterfaceSide](group__SystemCouplingParticipantAPIs.xhtml#gae8967650e49639319360bad6efc649a4) targetSide);

<a name="l00036"></a> 36 

<a name="l00038"></a>[ 38](classsysc_1_1DataTransfer.xhtml#aceb91e53a56a9ef07b94c987296ffbcd) const [Variable](classsysc_1_1Variable.xhtml)&amp; [getSourceVariable](classsysc_1_1DataTransfer.xhtml#aceb91e53a56a9ef07b94c987296ffbcd)() const noexcept;

<a name="l00039"></a> 39 

<a name="l00041"></a>[ 41](classsysc_1_1DataTransfer.xhtml#a7782efd24aafc93df895f2a10ad4fb60) const [Variable](classsysc_1_1Variable.xhtml)&amp; getTargetVariable() const noexcept;

<a name="l00042"></a> 42 

<a name="l00044"></a>[ 44](classsysc_1_1DataTransfer.xhtml#ac9ae876a20ec454c591ae7aac97758c6) const [Variable](classsysc_1_1Variable.xhtml)&amp; getSideOneVariable() const noexcept;

<a name="l00045"></a> 45 

<a name="l00047"></a>[ 47](classsysc_1_1DataTransfer.xhtml#a4c9015e16e6fc254ee795254fbbcf8b9) const [Variable](classsysc_1_1Variable.xhtml)&amp; getSideTwoVariable() const noexcept;

<a name="l00048"></a> 48 

<a name="l00050"></a>[ 50](classsysc_1_1DataTransfer.xhtml#a737e25f50bae13a64f047a7b84d5e378) [InterfaceSide](group__SystemCouplingParticipantAPIs.xhtml#gae8967650e49639319360bad6efc649a4) getTargetSide() const noexcept;

<a name="l00051"></a> 51 

<a name="l00053"></a>[ 53](classsysc_1_1DataTransfer.xhtml#a7788b20c57fe5479500101f705d0aaf8) [InterfaceSide](group__SystemCouplingParticipantAPIs.xhtml#gae8967650e49639319360bad6efc649a4) getSourceSide() const noexcept;

<a name="l00054"></a> 54 

<a name="l00055"></a> 55 private:

<a name="l00056"></a> 56 [Variable](classsysc_1_1Variable.xhtml) m_sourceVariable;

<a name="l00057"></a> 57 [Variable](classsysc_1_1Variable.xhtml) m_targetVariable;

<a name="l00058"></a> 58 [InterfaceSide](group__SystemCouplingParticipantAPIs.xhtml#gae8967650e49639319360bad6efc649a4) m_targetSide;

<a name="l00059"></a> 59 };

<a name="l00060"></a> 60 

<a name="l00061"></a> 61 } // namespace sysc

[sysc::DataTransfer](classsysc_1_1DataTransfer.xhtml)

Provide a class for a data transfer.

**Definition:** [DataTransfer.hpp:21](DataTransfer_8hpp_source.xhtml#l00021)



[sysc::DataTransfer::DataTransfer](classsysc_1_1DataTransfer.xhtml#a9a4412f47dbd13ece79d35b0876ace13)

DataTransfer(Variable sourceVariable, Variable targetVariable, enum InterfaceSide targetSide)

Provide a constructor for the DataTransfer class.



[sysc::DataTransfer::getSourceVariable](classsysc_1_1DataTransfer.xhtml#aceb91e53a56a9ef07b94c987296ffbcd)

const Variable &amp; getSourceVariable() const noexcept

Get the source variable.



[sysc::Variable](classsysc_1_1Variable.xhtml)

Provide a class for a System Coupling variable.

**Definition:** [Variable.hpp:21](Variable_8hpp_source.xhtml#l00021)



[sysc::InterfaceSide](group__SystemCouplingParticipantAPIs.xhtml#gae8967650e49639319360bad6efc649a4)

InterfaceSide

Provide enum for coupling interface side.

**Definition:** [CommonSettings.hpp:44](CommonSettings_8hpp_source.xhtml#l00044)