Loading...
Searching...
No Matches
annotator_raw.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2010,2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_GR_ANNOTATOR_RAW_H
#define INCLUDED_GR_ANNOTATOR_RAW_H
#include <gnuradio/blocks/api.h>
#include <gnuradio/sync_block.h>
#include <gnuradio/tags.h>
namespace gr {
namespace blocks {
/*!
* \brief raw stream annotator testing block.
* \ingroup debug_tools_blk
*
* \details
* This block creates arbitrary tags to be sent downstream gnuradio/blocks
* to be sent are set manually via accessor methods and are sent
* only once.
*
* This block is intended for testing of tag related gnuradio/blocks
*/
class BLOCKS_API annotator_raw : virtual public sync_block
{
public:
// gr::blocks::annotator_raw::sptr
typedef std::shared_ptr<annotator_raw> sptr;
static sptr make(size_t sizeof_stream_item);
// insert a tag to be added
virtual void add_tag(uint64_t offset, pmt::pmt_t key, pmt::pmt_t val) = 0;
};
} /* namespace blocks */
} /* namespace gr */
#endif /* INCLUDED_GR_ANNOTATOR_RAW_H */
gr::blocks::annotator_raw
raw stream annotator testing block.
Definition annotator_raw.h:33
gr::blocks::annotator_raw::sptr
std::shared_ptr< annotator_raw > sptr
Definition annotator_raw.h:36
gr::blocks::annotator_raw::make
static sptr make(size_t sizeof_stream_item)
gr::blocks::annotator_raw::add_tag
virtual void add_tag(uint64_t offset, pmt::pmt_t key, pmt::pmt_t val)=0
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
api.h
BLOCKS_API
#define BLOCKS_API
Definition gr-blocks/include/gnuradio/blocks/api.h:18
gr::blocks
Definition abs_blk.h:20
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
pmt::pmt_t
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition pmt.h:83
sync_block.h
tags.h