diff options
author | Lane Kolbly <lane.kolbly@ni.com> | 2021-12-10 16:10:04 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-05 10:19:45 -0600 |
commit | 0d51291070e34eb5431fcde448907e28c2db2926 (patch) | |
tree | fdc308435cbf1e4bba0e9ac87281a5f5ab0de95e /host/lib | |
parent | 1b5d14164ba86568578bce9f968934e8e5185276 (diff) | |
download | uhd-0d51291070e34eb5431fcde448907e28c2db2926.tar.gz uhd-0d51291070e34eb5431fcde448907e28c2db2926.tar.bz2 uhd-0d51291070e34eb5431fcde448907e28c2db2926.zip |
host: Implement operator<< for data_reader_t
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/include/uhdlib/experts/expert_nodes.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 <stdint.h> #include <boost/core/demangle.hpp> #include <functional> +#include <iostream> #include <list> #include <memory> #include <mutex> @@ -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; + } }; /*!--------------------------------------------------------- |