diff options
author | Nathan West <nathan.west@okstate.edu> | 2016-03-24 15:20:01 -0400 |
---|---|---|
committer | Nathan West <nathan.west@okstate.edu> | 2016-03-24 15:20:01 -0400 |
commit | aa33fb0b4940eefc9c193dc8e3b0eadbcc4ee52e (patch) | |
tree | da568cac9a72a7c1d9b739bf3f1111be35d5c416 | |
parent | 64a702e19d1e8e1b948e6ef76e98dff41837bb92 (diff) |
blocks: add a setter for repeat flag on vector source
-rw-r--r-- | gr-blocks/include/gnuradio/blocks/vector_source_X.h.t | 1 | ||||
-rw-r--r-- | gr-blocks/lib/vector_source_X_impl.h.t | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/vector_source_X.h.t b/gr-blocks/include/gnuradio/blocks/vector_source_X.h.t index d5298e8b47..b0ca6b869f 100644 --- a/gr-blocks/include/gnuradio/blocks/vector_source_X.h.t +++ b/gr-blocks/include/gnuradio/blocks/vector_source_X.h.t @@ -76,6 +76,7 @@ namespace gr { virtual void rewind() = 0; virtual void set_data(const std::vector<@TYPE@> &data, const std::vector<tag_t> &tags=std::vector<tag_t>()) = 0; + virtual void set_repeat(bool repeat) = 0; }; } /* namespace blocks */ diff --git a/gr-blocks/lib/vector_source_X_impl.h.t b/gr-blocks/lib/vector_source_X_impl.h.t index 2641c6661b..bc9b329d8f 100644 --- a/gr-blocks/lib/vector_source_X_impl.h.t +++ b/gr-blocks/lib/vector_source_X_impl.h.t @@ -50,6 +50,7 @@ namespace gr { void rewind() { d_offset=0; } void set_data(const std::vector<@TYPE@> &data, const std::vector<tag_t> &tags); + void set_repeat(bool repeat) { d_repeat=repeat; }; int work(int noutput_items, gr_vector_const_void_star &input_items, |