GNU Radio 3.7.1 C++ API
gr::blocks::annotator_1to1 Class Reference

1-to-1 stream annotator testing block. FOR TESTING PURPOSES ONLY. More...

#include <annotator_1to1.h>

Inheritance diagram for gr::blocks::annotator_1to1:

List of all members.

Public Types

typedef boost::shared_ptr
< annotator_1to1
sptr

Public Member Functions

virtual std::vector< tag_tdata () const =0

Static Public Member Functions

static sptr make (int when, size_t sizeof_stream_item)

Detailed Description

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.


Member Typedef Documentation


Member Function Documentation

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]

The documentation for this class was generated from the following file: