Skip to main content

System Coupling Participant library 2025 R2

File DataTransfer.hpp

Last update: 17.07.2025

Location: DataTransfer.hpp

Classes

Namespaces

Includes

  • SystemCouplingParticipant/LibraryType.hpp
  • SystemCouplingParticipant/CommonTypes.hpp
  • SystemCouplingParticipant/Variable.hpp
graph LR
3["SystemCouplingParticipant/CommonTypes.hpp"]

4["SystemCouplingParticipant/Variable.hpp"]

1["DataTransfer.hpp"]
click 1 "DataTransfer_8hpp.md#DataTransfer_8hpp"
1 --> 2
1 --> 3
1 --> 4

2["SystemCouplingParticipant/LibraryType.hpp"]

Source

/*
 * Copyright ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
 */

#pragma once

#include "SystemCouplingParticipant/LibraryType.hpp"

#include "SystemCouplingParticipant/CommonTypes.hpp"
#include "SystemCouplingParticipant/Variable.hpp"

namespace sysc {

class SYSTEM_COUPLING_PARTICIPANT_DLL DataTransfer {
public:
  DataTransfer(
    Variable sourceVariable,
    Variable targetVariable,
    enum InterfaceSide targetSide);

  const Variable& getSourceVariable() const noexcept;

  const Variable& getTargetVariable() const noexcept;

  const Variable& getSideOneVariable() const noexcept;

  const Variable& getSideTwoVariable() const noexcept;

  InterfaceSide getTargetSide() const noexcept;

  InterfaceSide getSourceSide() const noexcept;

private:
  Variable m_sourceVariable;
  Variable m_targetVariable;
  InterfaceSide m_targetSide;
};

}  // namespace sysc

Connect with Ansys