preCICE v3.1.2
|
Writes the connection info for the given participant/rank information. More...
#include <ConnectionInfoPublisher.hpp>
Public Member Functions | |
ConnectionInfoWriter (std::string_view acceptorName, std::string_view requesterName, std::string_view tag, int rank, std::string_view addressDirectory) noexcept | |
ConnectionInfoWriter (std::string_view acceptorName, std::string_view requesterName, std::string_view tag, std::string_view addressDirectory) noexcept | |
~ConnectionInfoWriter () | |
Removes the connection info file and the directories ./precice-run/[hash], is empty. | |
void | write (std::string_view info) const |
Write the string info, e.g. IP:port to the connection info file. | |
Public Member Functions inherited from precice::com::ConnectionInfoPublisher | |
ConnectionInfoPublisher (std::string_view acceptorName, std::string_view requesterName, std::string_view tag, int rank, std::string_view addressDirectory) noexcept | |
ConnectionInfoPublisher (std::string_view acceptorName, std::string_view requesterName, std::string_view tag, std::string_view addressDirectory) noexcept | |
Additional Inherited Members | |
Protected Member Functions inherited from precice::com::ConnectionInfoPublisher | |
std::string | getLocalDirectory () const |
Returns the local directory which is used to store the hashed part. | |
std::string | getFilename () const |
Returns the full path to the hashed filename. | |
Protected Attributes inherited from precice::com::ConnectionInfoPublisher | |
std::string const | acceptorName |
std::string const | requesterName |
std::string const | tag |
int const | rank = -1 |
std::string const | addressDirectory |
logging::Logger | _log {"com::ConnectionInfoPublisher"} |
Writes the connection info for the given participant/rank information.
The file is removed, when the object is destroyed.
Definition at line 95 of file ConnectionInfoPublisher.hpp.
|
inlinenoexcept |
Definition at line 97 of file ConnectionInfoPublisher.hpp.
|
inlinenoexcept |
Definition at line 106 of file ConnectionInfoPublisher.hpp.
precice::com::ConnectionInfoWriter::~ConnectionInfoWriter | ( | ) |
Removes the connection info file and the directories ./precice-run/[hash], is empty.
Definition at line 98 of file ConnectionInfoPublisher.cpp.
void precice::com::ConnectionInfoWriter::write | ( | std::string_view | info | ) | const |
Write the string info, e.g. IP:port to the connection info file.
which is determined by acceptorName, requesterName, rank, addressDirectory set at construction.
Definition at line 122 of file ConnectionInfoPublisher.cpp.