std::string const addressDirectory
std::string const acceptorName
std::string getLocalDirectory() const
Returns the local directory which is used to store the hashed part.
std::string const requesterName
ConnectionInfoPublisher(std::string_view acceptorName, std::string_view requesterName, std::string_view tag, std::string_view addressDirectory) noexcept
ConnectionInfoPublisher(std::string_view acceptorName, std::string_view requesterName, std::string_view tag, int rank, std::string_view addressDirectory) noexcept
std::string getFilename() const
Returns the full path to the hashed filename.
Reads the connection info for the given participant/rank information.
ConnectionInfoReader(std::string_view acceptorName, std::string_view requesterName, std::string_view tag, int rank, std::string_view addressDirectory) noexcept
std::string read() const
Reads the info from the connection info file. Will block, if the the file is not present.
ConnectionInfoReader(std::string_view acceptorName, std::string_view requesterName, std::string_view tag, std::string_view addressDirectory) noexcept
Writes the connection info for the given participant/rank information.
ConnectionInfoWriter(std::string_view acceptorName, std::string_view requesterName, std::string_view tag, std::string_view addressDirectory) noexcept
void write(std::string_view info) const
Write the string info, e.g. IP:port to the connection info file.
ConnectionInfoWriter(std::string_view acceptorName, std::string_view requesterName, std::string_view tag, int rank, std::string_view addressDirectory) noexcept
~ConnectionInfoWriter()
Removes the connection info file and the directories ./precice-run/[hash], is empty.
This class provides a lightweight logger.
std::string hashedFilePath(std::string_view acceptorName, std::string_view requesterName, std::string_view meshName, Rank rank)
Returns the file name for the connection information.
std::string localDirectory(std::string_view acceptorName, std::string_view requesterName, std::string_view addressDirectory)
contains the data communication abstraction layer.
static std::unique_ptr< precice::Participant > impl