GNU Radio 3.6.5 C++ API
|
1-to-1 stream annotator testing block. FOR TESTING PURPOSES ONLY. More...
#include <gr_annotator_1to1.h>
Public Member Functions | |
~gr_annotator_1to1 () | |
int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
just like gr_block::general_work, only this arranges to call consume_each for you | |
std::vector< gr_tag_t > | data () const |
Protected Member Functions | |
gr_annotator_1to1 (int when, size_t sizeof_stream_item) | |
Friends | |
GR_CORE_API gr_annotator_1to1_sptr | gr_make_annotator_1to1 (int when, size_t sizeof_stream_item) |
1-to-1 stream annotator testing block. FOR TESTING PURPOSES ONLY.
This block creates tags to be sent downstream every 10,000 items it sees. The tags contain the name and ID of the instantiated block, use "seq" as a key, and have a counter that increments by 1 for every tag produced that is used as the tag's value. The tags are propagated using the 1-to-1 policy.
It also stores a copy of all tags it sees flow past it. These tags can be recalled externally with the data() member.
This block is only meant for testing and showing how to use the tags.
gr_annotator_1to1::~gr_annotator_1to1 | ( | ) |
gr_annotator_1to1::gr_annotator_1to1 | ( | int | when, |
size_t | sizeof_stream_item | ||
) | [protected] |
std::vector<gr_tag_t> gr_annotator_1to1::data | ( | ) | const [inline] |
int gr_annotator_1to1::work | ( | int | noutput_items, |
gr_vector_const_void_star & | input_items, | ||
gr_vector_void_star & | output_items | ||
) | [virtual] |
just like gr_block::general_work, only this arranges to call consume_each for you
The user must override work to define the signal processing code
Implements gr_sync_block.
GR_CORE_API gr_annotator_1to1_sptr gr_make_annotator_1to1 | ( | int | when, |
size_t | sizeof_stream_item | ||
) | [friend] |