Skip to content

Commit

Permalink
5.8.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bha-evs committed Aug 26, 2024
1 parent c4f4ba0 commit 2d2fac6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
32 changes: 24 additions & 8 deletions lib/include/bofstd/bofserviceendpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@

BEGIN_BOF_NAMESPACE()

struct BOF_SERVICE_ENPOINT_META_DATA
{
bool UserMaster_B;
std::string UserArg_S;
void *pUser;

BOF_SERVICE_ENPOINT_META_DATA()
{
Reset();
}
void Reset()
{
UserMaster_B = false;
UserArg_S = "";
pUser = nullptr;
}
};
class BOFSTD_EXPORT BofServiceEndpoint
{
public:
Expand All @@ -36,25 +53,24 @@ class BOFSTD_EXPORT BofServiceEndpoint
bool IsValid();
std::string ToString(bool _ShowName_B);

bool SetUserArg(bool _UserMaster_B, const std::string &_rUserArg_S);
bool SetServiceMetaData(const BOF_SERVICE_ENPOINT_META_DATA &_rServiceEndpointMetaData_X);
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<std::string> &_rServiceTagCollection);

const std::string GetUserArg(bool &_rUserMaster_B);
const std::string GetServiceName() const;
const std::string GetServiceInstance() const;
const std::string GetServiceUrl() const;
const std::set<std::string> GetServiceTagCollection() const;
BOF_SERVICE_ENPOINT_META_DATA GetServiceMetaData() const;
std::string GetServiceName() const;
std::string GetServiceInstance() const;
std::string GetServiceUrl() const;
std::set<std::string> GetServiceTagCollection() const;

private:
BofUri mUri;
std::string mServiceName_S;
std::string mServiceInstance_S;
std::set<std::string> mServiceTagCollection;
bool mUserMaster_B = false;
std::string mUserArg_S;
BOF_SERVICE_ENPOINT_META_DATA mServiceEndpointMetaData_X;
};

END_BOF_NAMESPACE()
18 changes: 8 additions & 10 deletions lib/src/bofserviceendpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ std::string BofServiceEndpoint::ToString(bool _ShowName_B)
Rts += mUri.ToString();
return Rts;
}
bool BofServiceEndpoint::SetUserArg(bool _UserMaster_B, const std::string &_rUserArg_S)
bool BofServiceEndpoint::SetServiceMetaData(const BOF_SERVICE_ENPOINT_META_DATA &_rServiceEndpointMetaData_X)
{
mUserArg_S = _UserMaster_B;
mUserMaster_B = _UserMaster_B;
mServiceEndpointMetaData_X = _rServiceEndpointMetaData_X;
return true;
}
bool BofServiceEndpoint::SetServiceName(const std::string &_rServiceName_S)
Expand All @@ -80,22 +79,21 @@ bool BofServiceEndpoint::SetServiceTagCollection(const std::set<std::string> &_r
mServiceTagCollection = _rServiceTagCollection;
return true;
}
const std::string BofServiceEndpoint::GetUserArg(bool &_rUserMaster_B)
BOF_SERVICE_ENPOINT_META_DATA BofServiceEndpoint::GetServiceMetaData() const
{
_rUserMaster_B = mUserMaster_B;
return mUserArg_S;
return mServiceEndpointMetaData_X;
}
const std::string BofServiceEndpoint::GetServiceName() const
std::string BofServiceEndpoint::GetServiceName() const
{
return mServiceName_S;
}

const std::string BofServiceEndpoint::GetServiceInstance() const
std::string BofServiceEndpoint::GetServiceInstance() const
{
return mServiceInstance_S;
}

const std::string BofServiceEndpoint::GetServiceUrl() const
std::string BofServiceEndpoint::GetServiceUrl() const
{
std::string Rts_S;
BOF::BOF_SOCKET_ADDRESS SocketAddress_X;
Expand All @@ -104,7 +102,7 @@ const std::string BofServiceEndpoint::GetServiceUrl() const
return Rts_S;
}

const std::set<std::string> BofServiceEndpoint::GetServiceTagCollection() const
std::set<std::string> BofServiceEndpoint::GetServiceTagCollection() const
{
return mServiceTagCollection;
}
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bofstd",
"version": "5.8.1.3",
"version": "5.8.1.4",
"description": "The onbings general purpose C++ Multiplatform library",
"dependencies": [
{
Expand Down

0 comments on commit 2d2fac6

Please sign in to comment.