From c4f4ba067f2c861b9efc34ebd215f631c170a046 Mon Sep 17 00:00:00 2001 From: "HARMEL, Bernard" Date: Mon, 26 Aug 2024 11:53:20 +0200 Subject: [PATCH] 5.8.1.3 --- lib/include/bofstd/bofserviceendpoint.h | 4 ++++ lib/src/bofserviceendpoint.cpp | 12 +++++++++++- vcpkg.json | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/include/bofstd/bofserviceendpoint.h b/lib/include/bofstd/bofserviceendpoint.h index 407700e..8f17106 100644 --- a/lib/include/bofstd/bofserviceendpoint.h +++ b/lib/include/bofstd/bofserviceendpoint.h @@ -36,11 +36,13 @@ class BOFSTD_EXPORT BofServiceEndpoint bool IsValid(); std::string ToString(bool _ShowName_B); + bool SetUserArg(bool _UserMaster_B, const std::string &_rUserArg_S); bool SetServiceName(const std::string &_rServiceName_S); bool SetServiceInstance(const std::string &_rServiceInstance_S); bool SetServiceUrl(const std::string &_rServiceUrl_S); bool SetServiceTagCollection(const std::set &_rServiceTagCollection); + const std::string GetUserArg(bool &_rUserMaster_B); const std::string GetServiceName() const; const std::string GetServiceInstance() const; const std::string GetServiceUrl() const; @@ -51,6 +53,8 @@ class BOFSTD_EXPORT BofServiceEndpoint std::string mServiceName_S; std::string mServiceInstance_S; std::set mServiceTagCollection; + bool mUserMaster_B = false; + std::string mUserArg_S; }; END_BOF_NAMESPACE() \ No newline at end of file diff --git a/lib/src/bofserviceendpoint.cpp b/lib/src/bofserviceendpoint.cpp index a6dc961..24f3a99 100644 --- a/lib/src/bofserviceendpoint.cpp +++ b/lib/src/bofserviceendpoint.cpp @@ -52,6 +52,12 @@ std::string BofServiceEndpoint::ToString(bool _ShowName_B) Rts += mUri.ToString(); return Rts; } +bool BofServiceEndpoint::SetUserArg(bool _UserMaster_B, const std::string &_rUserArg_S) +{ + mUserArg_S = _UserMaster_B; + mUserMaster_B = _UserMaster_B; + return true; +} bool BofServiceEndpoint::SetServiceName(const std::string &_rServiceName_S) { mServiceName_S = _rServiceName_S; @@ -74,7 +80,11 @@ bool BofServiceEndpoint::SetServiceTagCollection(const std::set &_r mServiceTagCollection = _rServiceTagCollection; return true; } - +const std::string BofServiceEndpoint::GetUserArg(bool &_rUserMaster_B) +{ + _rUserMaster_B = mUserMaster_B; + return mUserArg_S; +} const std::string BofServiceEndpoint::GetServiceName() const { return mServiceName_S; diff --git a/vcpkg.json b/vcpkg.json index a010ca9..f76a2cb 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,6 @@ { "name": "bofstd", - "version": "5.8.1.2", + "version": "5.8.1.3", "description": "The onbings general purpose C++ Multiplatform library", "dependencies": [ {