> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# sysc::DataTransfer Class Reference

Part of [C++ Interfaces for Participant Library](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs)

Provide a class for a data transfer.

`#include <DataTransfer.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| | [DataTransfer](#a9a4412f47dbd13ece79d35b0876ace13) ([Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) sourceVariable, [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) targetVariable, enum [InterfaceSide](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gae8967650e49639319360bad6efc649a4) targetSide) Provide a constructor for the [DataTransfer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1DataTransfer.md) class. |
|  const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) & | [getSourceVariable](#aceb91e53a56a9ef07b94c987296ffbcd) () const noexcept Get the source variable. |
|  const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) & | [getTargetVariable](#a7782efd24aafc93df895f2a10ad4fb60) () const noexcept Get the target variable. |
|  const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) & | [getSideOneVariable](#ac9ae876a20ec454c591ae7aac97758c6) () const noexcept Get the variable on side one. |
|  const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) & | [getSideTwoVariable](#a4c9015e16e6fc254ee795254fbbcf8b9) () const noexcept Get the variable on side two. |
| [InterfaceSide](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gae8967650e49639319360bad6efc649a4) | [getTargetSide](#a737e25f50bae13a64f047a7b84d5e378) () const noexcept Get the source side. |
| [InterfaceSide](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gae8967650e49639319360bad6efc649a4) | [getSourceSide](#a7788b20c57fe5479500101f705d0aaf8) () const noexcept Get the target side. |

## Detailed Description

Provide a class for a data transfer.

Data transfer specifies the source and target variables for mapping.

Definition at line [21](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/DataTransfer_8hpp_source) of file [DataTransfer.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/DataTransfer_8hpp_source).

## Constructor & Destructor Documentation

### DataTransfer()

```cpp theme={null}
sysc::DataTransfer::DataTransfer(
    Variable sourceVariable,
    Variable targetVariable,
    enum InterfaceSide targetSide
)
```

Provide a constructor for the [DataTransfer](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1DataTransfer.md) class.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | sourceVariable | - source variable. |
| \[in] | targetVariable | - target variable. |
| \[in] | targetSide | - target side. |
