GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
skiphead.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2005,2013 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_GR_SKIPHEAD_H
12 #define INCLUDED_GR_SKIPHEAD_H
13 
14 #include <gnuradio/blocks/api.h>
15 #include <gnuradio/sync_block.h>
16 #include <cstddef> // size_t
17 
18 namespace gr {
19 namespace blocks {
20 
21 /*!
22  * \brief skips the first N items, from then on copies items to the output
23  * \ingroup misc_blk
24  *
25  * \details
26  * Useful for building test cases and sources which have metadata
27  * or junk at the start
28  */
29 class BLOCKS_API skiphead : virtual public block
30 {
31 public:
32  // gr::blocks::skiphead::sptr
33  typedef std::shared_ptr<skiphead> sptr;
34 
35  static sptr make(size_t itemsize, uint64_t nitems_to_skip);
36 };
37 
38 } /* namespace blocks */
39 } /* namespace gr */
40 
41 #endif /* INCLUDED_GR_SKIPHEAD_H */
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:63
skips the first N items, from then on copies items to the output
Definition: skiphead.h:30
static sptr make(size_t itemsize, uint64_t nitems_to_skip)
std::shared_ptr< skiphead > sptr
Definition: skiphead.h:33
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GR_RUNTIME_API size_t itemsize(types::vector_type type)
GNU Radio logging wrapper.
Definition: basic_block.h:29