mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
Add operator<< to fair::mq::Channel
This commit is contained in:
parent
ac661dfd63
commit
a8b7ebef09
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <cstdint> // int64_t
|
||||
#include <memory> // unique_ptr, shared_ptr
|
||||
#include <ostream>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <utility> // std::move
|
||||
|
@ -380,6 +381,14 @@ class Channel
|
|||
static constexpr int DefaultPortRangeMax = 23000;
|
||||
static constexpr bool DefaultAutoBind = true;
|
||||
|
||||
friend std::ostream& operator<<(std::ostream& os, const Channel& ch)
|
||||
{
|
||||
return os << "name: " << ch.fName
|
||||
<< ", type: " << ch.fType
|
||||
<< ", method: " << ch.fMethod
|
||||
<< ", address: " << ch.fAddress;
|
||||
}
|
||||
|
||||
private:
|
||||
std::shared_ptr<TransportFactory> fTransportFactory;
|
||||
mq::Transport fTransportType;
|
||||
|
|
Loading…
Reference in New Issue
Block a user