GNU Radio's SATELLITES Package
message_counter.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2025 Daniel Estevez <daniel@destevez.net>.
4 *
5 * This file is part of gr-satellites
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 */
9
10#ifndef INCLUDED_SATELLITES_MESSAGE_COUNTER_H
11#define INCLUDED_SATELLITES_MESSAGE_COUNTER_H
12
13#include <gnuradio/sync_block.h>
14#include <satellites/api.h>
15
16namespace gr {
17namespace satellites {
18
19/*!
20 * \brief Counts messages
21 * \ingroup satellites
22 *
23 * \details
24 * The Message Counter block counts messages that cross the block and outputs a
25 * message every time that a new message have crossed the block. The message
26 * contains the count.
27 */
28class SATELLITES_API message_counter : virtual public gr::sync_block
29{
30public:
31 typedef std::shared_ptr<message_counter> sptr;
32
33 /*!
34 * \brief Build a Message Counter block.
35 */
36 static sptr make();
37};
38
39} // namespace satellites
40} // namespace gr
41
42#endif /* INCLUDED_SATELLITES_MESSAGE_COUNTER_H */
#define SATELLITES_API
Definition: api.h:31
Counts messages.
Definition: message_counter.h:29
std::shared_ptr< message_counter > sptr
Definition: message_counter.h:31
static sptr make()
Build a Message Counter block.
Definition: ax100_decode.h:17