diff options
author | Johnathan Corgan | 2009-08-15 18:06:37 -0700 |
---|---|---|
committer | Johnathan Corgan | 2009-08-15 18:06:37 -0700 |
commit | c9ad0211dac1721ec3f834bb14e71ca50e801721 (patch) | |
tree | 87bf55144ba6a6db15ff486165110c595ae842a3 /gruel/src/lib/pmt/pmt_io.cc | |
parent | ea57c1b52b8bed12296ba51441afcfc57a0b9d34 (diff) | |
parent | 4edaf1e7fc05df0628c05785d5ede285a64670b0 (diff) | |
download | gnuradio-c9ad0211dac1721ec3f834bb14e71ca50e801721.tar.gz gnuradio-c9ad0211dac1721ec3f834bb14e71ca50e801721.tar.bz2 gnuradio-c9ad0211dac1721ec3f834bb14e71ca50e801721.zip |
Merged changes from svn repository trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11601 221aa14e-8319-0410-a670-987f0aec2ac5
Signed-off-by: Johnathan Corgan <jcorgan@corganenterprises.com>
Diffstat (limited to 'gruel/src/lib/pmt/pmt_io.cc')
-rw-r--r-- | gruel/src/lib/pmt/pmt_io.cc | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/gruel/src/lib/pmt/pmt_io.cc b/gruel/src/lib/pmt/pmt_io.cc index f5a82de0e..179e6b72c 100644 --- a/gruel/src/lib/pmt/pmt_io.cc +++ b/gruel/src/lib/pmt/pmt_io.cc @@ -80,16 +80,31 @@ pmt_write(pmt_t obj, std::ostream &port) port << "("; pmt_write_list_tail(obj, port); } + else if (pmt_is_tuple(obj)){ + port << "{"; + size_t len = pmt_length(obj); + if (len > 0){ + port << pmt_tuple_ref(obj, 0); + for (size_t i = 1; i < len; i++) + port << " " << pmt_tuple_ref(obj, i); + } + port << "}"; + } + else if (pmt_is_vector(obj)){ + port << "#("; + size_t len = pmt_length(obj); + if (len > 0){ + port << pmt_vector_ref(obj, 0); + for (size_t i = 1; i < len; i++) + port << " " << pmt_vector_ref(obj, i); + } + port << ")"; + } else if (pmt_is_dict(obj)){ // FIXME // port << "#<dict " << obj << ">"; port << "#<dict>"; } - else if (pmt_is_vector(obj)){ - // FIXME - // port << "#<vector " << obj << ">"; - port << "#<vector>"; - } else if (pmt_is_uniform_vector(obj)){ // FIXME // port << "#<uniform-vector " << obj << ">"; |