From 3336173da23bd7b7b0c20c0d4fcc344ff72e61d0 Mon Sep 17 00:00:00 2001 From: Chen Date: Tue, 21 Jan 2025 18:23:33 +0800 Subject: [PATCH] [C++]add aeronDir() method for context (#1725) * [C++] add aeronDir() method to Context.h * [C++] add aeronDir() method to Context.h * [C++] add aeronDir() method to Context.h * fix --- aeron-client/src/main/cpp_wrapper/Context.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/aeron-client/src/main/cpp_wrapper/Context.h b/aeron-client/src/main/cpp_wrapper/Context.h index ad10ceda66..7ea1f07cb7 100644 --- a/aeron-client/src/main/cpp_wrapper/Context.h +++ b/aeron-client/src/main/cpp_wrapper/Context.h @@ -278,6 +278,16 @@ class Context return *this; } + /** + * Get the directory that the Aeron client will use to communicate with the media driver. + * + * @return aeron directory + */ + inline std::string aeronDir() + { + return std::string(aeron_context_get_dir(m_context)); + } + /** * Set the name for this Aeron client. *