GNU Radio 3.7.1 C++ API
|
1-to-1 stream annotator testing block. FOR TESTING PURPOSES ONLY. More...
#include <annotator_1to1.h>
Public Types | |
typedef boost::shared_ptr < annotator_1to1 > | sptr |
Public Member Functions | |
virtual std::vector< tag_t > | data () const =0 |
Static Public Member Functions | |
static sptr | make (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.
Warning: This block is only meant for testing and showing how to use the tags.
virtual std::vector<tag_t> gr::blocks::annotator_1to1::data | ( | ) | const [pure virtual] |
static sptr gr::blocks::annotator_1to1::make | ( | int | when, |
size_t | sizeof_stream_item | ||
) | [static] |