diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2014-06-13 14:41:50 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-06-13 14:41:50 -0700 |
commit | f5aafacd7416822cd0ec7017dd9604cfdb1533dc (patch) | |
tree | 05c7c448ee6f593abf3d6831445a063325a03d12 /gnuradio-runtime/lib/pmt/pmt_io.cc | |
parent | f3fbf453e08a490d6c610658ad6394e308c2a14e (diff) | |
parent | dbd2aee42a4bba767b8f1daf0801fd0aac304be7 (diff) |
Merge remote-tracking branch 'mmueller/pmt_io_uniform_vector_to_string'
Conflicts:
gnuradio-runtime/lib/pmt/pmt_int.h
Diffstat (limited to 'gnuradio-runtime/lib/pmt/pmt_io.cc')
-rw-r--r-- | gnuradio-runtime/lib/pmt/pmt_io.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gnuradio-runtime/lib/pmt/pmt_io.cc b/gnuradio-runtime/lib/pmt/pmt_io.cc index 17bdee408f..acad8fc2ca 100644 --- a/gnuradio-runtime/lib/pmt/pmt_io.cc +++ b/gnuradio-runtime/lib/pmt/pmt_io.cc @@ -110,9 +110,16 @@ write(pmt_t obj, std::ostream &port) port << "#<dict>"; } else if (is_uniform_vector(obj)){ - // FIXME - // port << "#<uniform-vector " << obj << ">"; - port << "#<uniform-vector>"; + port << "#["; + size_t len = length(obj); + if (len) + { + pmt_uniform_vector *uv = dynamic_cast<pmt_uniform_vector*>(obj.get()); + port << uv->string_ref(0); + for (size_t i = 1; i < len; i++) + port << " " << uv->string_ref(i); + } + port << "]"; } else { error: |