mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-12 16:21:13 +00:00
Hide actual container from the API
This commit is contained in:
parent
41ac755c57
commit
a461bd0ae7
|
@ -438,7 +438,7 @@ class Channel
|
|||
}
|
||||
|
||||
void CheckSendCompatibility(Parts& parts) { CheckSendCompatibility(parts.fParts); }
|
||||
void CheckSendCompatibility(std::vector<MessagePtr>& msgVec)
|
||||
void CheckSendCompatibility(Parts::container & msgVec)
|
||||
{
|
||||
for (auto& msg : msgVec) {
|
||||
if (fTransportType != msg->GetType()) {
|
||||
|
@ -468,7 +468,7 @@ class Channel
|
|||
}
|
||||
|
||||
void CheckReceiveCompatibility(Parts& parts) { CheckReceiveCompatibility(parts.fParts); }
|
||||
void CheckReceiveCompatibility(std::vector<MessagePtr>& msgVec)
|
||||
void CheckReceiveCompatibility(Parts::container& msgVec)
|
||||
{
|
||||
for (auto& msg : msgVec) {
|
||||
if (fTransportType != msg->GetType()) {
|
||||
|
|
|
@ -52,8 +52,8 @@ struct Socket
|
|||
|
||||
virtual int64_t Send(MessagePtr& msg, int timeout = -1) = 0;
|
||||
virtual int64_t Receive(MessagePtr& msg, int timeout = -1) = 0;
|
||||
virtual int64_t Send(std::vector<std::unique_ptr<Message>>& msgVec, int timeout = -1) = 0;
|
||||
virtual int64_t Receive(std::vector<std::unique_ptr<Message>>& msgVec, int timeout = -1) = 0;
|
||||
virtual int64_t Send(Parts::container& msgVec, int timeout = -1) = 0;
|
||||
virtual int64_t Receive(Parts::container & msgVec, int timeout = -1) = 0;
|
||||
virtual int64_t Send(Parts& parts, int timeout = -1) { return Send(parts.fParts, timeout); }
|
||||
virtual int64_t Receive(Parts& parts, int timeout = -1) { return Receive(parts.fParts, timeout); }
|
||||
|
||||
|
|
|
@ -200,7 +200,7 @@ class Socket final : public fair::mq::Socket
|
|||
}
|
||||
}
|
||||
|
||||
int64_t Send(std::vector<MessagePtr>& msgVec, int timeout = -1) override
|
||||
int64_t Send(Parts::container& msgVec, int timeout = -1) override
|
||||
{
|
||||
int flags = 0;
|
||||
if (timeout == 0) {
|
||||
|
@ -260,7 +260,7 @@ class Socket final : public fair::mq::Socket
|
|||
return static_cast<int>(TransferCode::error);
|
||||
}
|
||||
|
||||
int64_t Receive(std::vector<MessagePtr>& msgVec, int timeout = -1) override
|
||||
int64_t Receive(Parts::container& msgVec, int timeout = -1) override
|
||||
{
|
||||
int flags = 0;
|
||||
if (timeout == 0) {
|
||||
|
|
|
@ -154,7 +154,7 @@ class Socket final : public fair::mq::Socket
|
|||
}
|
||||
}
|
||||
|
||||
int64_t Send(std::vector<std::unique_ptr<fair::mq::Message>>& msgVec, int timeout = -1) override
|
||||
int64_t Send(Parts::container& msgVec, int timeout = -1) override
|
||||
{
|
||||
int flags = 0;
|
||||
if (timeout == 0) {
|
||||
|
@ -206,7 +206,7 @@ class Socket final : public fair::mq::Socket
|
|||
}
|
||||
}
|
||||
|
||||
int64_t Receive(std::vector<std::unique_ptr<fair::mq::Message>>& msgVec, int timeout = -1) override
|
||||
int64_t Receive(Parts::container& msgVec, int timeout = -1) override
|
||||
{
|
||||
int flags = 0;
|
||||
if (timeout == 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user