Skip to main content

System Coupling C++ library 2024 R2

sysc::ParticipantInfo Struct Reference

Last update: 17.07.2025

provide a structure for the participant information needed to connect to a System Coupling object More...

#include <CommonTypes.hpp>

Public Member Functions

 ParticipantInfo ()=default
 Provide a default constructor.
 
 ParticipantInfo (std::string scHost, unsigned short scPort, std::string participantName)
 Provide a non-default constructor.
 
 ParticipantInfo (std::string scHost, unsigned short scPort, std::string participantName, std::string buildInformation)
 Provide a non-default constructor.
 
 ParticipantInfo (std::string scHost, unsigned short scPort, std::string participantName, std::string buildInformation, std::string transcriptFilename)
 Provide a non-default constructor.
 

Public Attributes

std::string scHost
 
unsigned short scPort {0}
 
std::string participantName
 
bool isCosimulation {false}
 
std::string buildInformation
 
std::string transcriptFilename
 

Detailed Description

provide a structure for the participant information needed to connect to a System Coupling object

Parameters
scHosthost name to connect to System Coupling
scPortport number to connect to System Coupling
participantNamename of the participant
isCosimulationflag if the simulation is a cosimulation
buildInformationinformation for the current build
transcriptFilenamethe name of the transcript to be written to

Definition at line 258 of file CommonTypes.hpp.

Constructor & Destructor Documentation

◆ ParticipantInfo() [1/3]

sysc::ParticipantInfo::ParticipantInfo ( std::string  scHost,
unsigned short  scPort,
std::string  participantName 
)
inline

Provide a non-default constructor.

Definition at line 270 of file CommonTypes.hpp.

273 :
274 scHost(std::move(scHost)),
275 scPort(scPort),
276 participantName(std::move(participantName)),
277 isCosimulation(true)
278 {
279 }

◆ ParticipantInfo() [2/3]

sysc::ParticipantInfo::ParticipantInfo ( std::string  scHost,
unsigned short  scPort,
std::string  participantName,
std::string  buildInformation 
)
inline

Provide a non-default constructor.

Definition at line 282 of file CommonTypes.hpp.

286 :
287 scHost(std::move(scHost)),
288 scPort(scPort),
289 participantName(std::move(participantName)),
290 isCosimulation(true),
291 buildInformation(std::move(buildInformation))
292 {
293 }

◆ ParticipantInfo() [3/3]

sysc::ParticipantInfo::ParticipantInfo ( std::string  scHost,
unsigned short  scPort,
std::string  participantName,
std::string  buildInformation,
std::string  transcriptFilename 
)
inline

Provide a non-default constructor.

Definition at line 296 of file CommonTypes.hpp.

301 :
302 scHost(std::move(scHost)),
303 scPort(scPort),
304 participantName(std::move(participantName)),
305 isCosimulation(true),
306 buildInformation(std::move(buildInformation)),
307 transcriptFilename(std::move(transcriptFilename))
308 {
309 }

Member Data Documentation

◆ buildInformation

std::string sysc::ParticipantInfo::buildInformation

Definition at line 263 of file CommonTypes.hpp.

◆ isCosimulation

bool sysc::ParticipantInfo::isCosimulation {false}

Definition at line 262 of file CommonTypes.hpp.

262{false};

◆ participantName

std::string sysc::ParticipantInfo::participantName

Definition at line 261 of file CommonTypes.hpp.

◆ scHost

std::string sysc::ParticipantInfo::scHost

Definition at line 259 of file CommonTypes.hpp.

◆ scPort

unsigned short sysc::ParticipantInfo::scPort {0}

Definition at line 260 of file CommonTypes.hpp.

260{0};

◆ transcriptFilename

std::string sysc::ParticipantInfo::transcriptFilename

Definition at line 264 of file CommonTypes.hpp.

Connect with Ansys