From 0d51291070e34eb5431fcde448907e28c2db2926 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Fri, 10 Dec 2021 16:10:04 -0600 Subject: host: Implement operator<< for data_reader_t --- host/lib/include/uhdlib/experts/expert_nodes.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/lib') diff --git a/host/lib/include/uhdlib/experts/expert_nodes.hpp b/host/lib/include/uhdlib/experts/expert_nodes.hpp index 554706741..b0e298485 100644 --- a/host/lib/include/uhdlib/experts/expert_nodes.hpp +++ b/host/lib/include/uhdlib/experts/expert_nodes.hpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -391,6 +392,12 @@ public: { return !(get() == rhs); } + + friend std::ostream& operator<<(std::ostream& os, const data_reader_t& reader) + { + os << reader.get(); + return os; + } }; /*!--------------------------------------------------------- -- cgit v1.2.3