diff options
author | Tom Rondeau | 2011-03-14 19:33:03 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-03-14 19:33:03 -0400 |
commit | a611da7044175fede5f8ecfe13a055f5680fd3f9 (patch) | |
tree | f17e9f84ad5aa5579f1e3d85005730a5315b4fbc /gruel/src/lib/pmt/pmt_io.cc | |
parent | 04a2f7d44984ebce10c27ae5271d5fe9782cb6f0 (diff) | |
download | gnuradio-a611da7044175fede5f8ecfe13a055f5680fd3f9.tar.gz gnuradio-a611da7044175fede5f8ecfe13a055f5680fd3f9.tar.bz2 gnuradio-a611da7044175fede5f8ecfe13a055f5680fd3f9.zip |
gruel: SWIGing Gruel into Python to access PMTs.
Diffstat (limited to 'gruel/src/lib/pmt/pmt_io.cc')
-rw-r--r-- | gruel/src/lib/pmt/pmt_io.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gruel/src/lib/pmt/pmt_io.cc b/gruel/src/lib/pmt/pmt_io.cc index b909c1b64..1214ff588 100644 --- a/gruel/src/lib/pmt/pmt_io.cc +++ b/gruel/src/lib/pmt/pmt_io.cc @@ -26,6 +26,7 @@ #include <gruel/pmt.h> #include "pmt_int.h" #include <sstream> +#include <iostream> namespace pmt { @@ -156,3 +157,12 @@ pmt_deserialize(std::istream &source) } } /* namespace pmt */ + + +void +pmt::pmt_print(pmt_t v) +{ + std::cout << pmt_write_string(v) << std::endl; +} + + |