Skip to main content

System Coupling C++ library 2024 R1

DataTransfer

Last update: 17.07.2025
1/*
2 * Copyright ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
3 */
4
5#pragma once
6
7#include "SystemCouplingParticipant/LibraryType.hpp"
8
9#include "SystemCouplingParticipant/CommonTypes.hpp"
10#include "SystemCouplingParticipant/Variable.hpp"
11
12namespace sysc {
13
21class SYSTEM_COUPLING_PARTICIPANT_DLL DataTransfer {
22public:
33 Variable sourceVariable,
34 Variable targetVariable,
35 enum InterfaceSide targetSide);
36
38 const Variable& getSourceVariable() const noexcept;
39
41 const Variable& getTargetVariable() const noexcept;
42
44 const Variable& getSideOneVariable() const noexcept;
45
47 const Variable& getSideTwoVariable() const noexcept;
48
50 InterfaceSide getTargetSide() const noexcept;
51
53 InterfaceSide getSourceSide() const noexcept;
54
55private:
56 Variable m_sourceVariable;
57 Variable m_targetVariable;
58 InterfaceSide m_targetSide;
59};
60
61} // namespace sysc
Provide a class for a data transfer.
DataTransfer(Variable sourceVariable, Variable targetVariable, enum InterfaceSide targetSide)
Provide a constructor for the DataTransfer class.
const Variable & getSourceVariable() const noexcept
Get the source variable.
Provide a class for a System Coupling variable.
Definition Variable.hpp:21
InterfaceSide
Provide enum for coupling interface side.

Connect with Ansys