summaryrefslogtreecommitdiff
path: root/gruel/src/lib/pmt/pmt_io.cc
diff options
context:
space:
mode:
authorTom Rondeau2011-03-14 19:33:03 -0400
committerTom Rondeau2011-03-14 19:33:03 -0400
commita611da7044175fede5f8ecfe13a055f5680fd3f9 (patch)
treef17e9f84ad5aa5579f1e3d85005730a5315b4fbc /gruel/src/lib/pmt/pmt_io.cc
parent04a2f7d44984ebce10c27ae5271d5fe9782cb6f0 (diff)
downloadgnuradio-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.cc10
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;
+}
+
+