summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/file_meta_source_impl.cc
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-04-17 13:43:52 -0400
committerTom Rondeau <trondeau@vt.edu>2013-04-29 14:52:56 -0400
commitf3e2e07201c50033bf6c9d0c6a6f068557b4f17f (patch)
tree140b3c2d20a951ffd4abd564c3378ee2e2f9fc7c /gr-blocks/lib/file_meta_source_impl.cc
parent35303ae975a5b1bdecc2492bc96e2b8e89b62a3d (diff)
runtime: converting runtime core to gr namespace, gnuradio include dir.
Diffstat (limited to 'gr-blocks/lib/file_meta_source_impl.cc')
-rw-r--r--gr-blocks/lib/file_meta_source_impl.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/gr-blocks/lib/file_meta_source_impl.cc b/gr-blocks/lib/file_meta_source_impl.cc
index 2b16b9066b..6f1338dd58 100644
--- a/gr-blocks/lib/file_meta_source_impl.cc
+++ b/gr-blocks/lib/file_meta_source_impl.cc
@@ -25,7 +25,7 @@
#endif
#include "file_meta_source_impl.h"
-#include <gr_io_signature.h>
+#include <gnuradio/io_signature.h>
#include <cstdio>
#include <sys/types.h>
#include <sys/stat.h>
@@ -72,9 +72,9 @@ namespace gr {
bool repeat,
bool detached_header,
const std::string &hdr_filename)
- : gr_sync_block("file_meta_source",
- gr_make_io_signature(0, 0, 0),
- gr_make_io_signature(1, 1, 1)),
+ : sync_block("file_meta_source",
+ io_signature::make(0, 0, 0),
+ io_signature::make(1, 1, 1)),
d_itemsize(0), d_samp_rate(0),
d_seg_size(0),
d_updated(false), d_repeat(repeat)
@@ -104,7 +104,7 @@ namespace gr {
throw std::runtime_error("file_meta_source: could not read header.\n");
// Set output signature based on itemsize info in header
- set_output_signature(gr_make_io_signature(1, 1, d_itemsize));
+ set_output_signature(io_signature::make(1, 1, d_itemsize));
}
file_meta_source_impl::~file_meta_source_impl()
@@ -197,7 +197,7 @@ namespace gr {
void
file_meta_source_impl::parse_header(pmt::pmt_t hdr, uint64_t offset,
- std::vector<gr_tag_t> &tags)
+ std::vector<tag_t> &tags)
{
pmt::pmt_t r, key;
@@ -207,7 +207,7 @@ namespace gr {
r = pmt::dict_ref(hdr, key, pmt::PMT_NIL);
d_samp_rate = pmt::to_double(r);
- gr_tag_t t;
+ tag_t t;
t.offset = offset;
t.key = key;
t.value = r;
@@ -223,7 +223,7 @@ namespace gr {
if(pmt::dict_has_key(hdr, key)) {
d_time_stamp = pmt::dict_ref(hdr, key, pmt::PMT_NIL);
- gr_tag_t t;
+ tag_t t;
t.offset = offset;
t.key = key;
t.value = d_time_stamp;
@@ -256,7 +256,7 @@ namespace gr {
void
file_meta_source_impl::parse_extras(pmt::pmt_t extras, uint64_t offset,
- std::vector<gr_tag_t> &tags)
+ std::vector<tag_t> &tags)
{
pmt::pmt_t item, key, val;
@@ -266,7 +266,7 @@ namespace gr {
key = pmt::car(item);
val = pmt::cdr(item);
- gr_tag_t t;
+ tag_t t;
t.offset = offset;
t.key = key;
t.value = val;