Loading...
Searching...
No Matches
add_system_time.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2021 NTESS LLC.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef INCLUDED_PDU_ADD_SYSTEM_TIME_H
#define INCLUDED_PDU_ADD_SYSTEM_TIME_H
#include <gnuradio/block.h>
#include <gnuradio/pdu/api.h>
namespace gr {
namespace pdu {
/*!
* \brief Adds system time to a PDU's metadata
* \ingroup debug_tools_blk
* \ingroup pdu_blk
*
* Adds a user specified key to PDU dict containing the system time in seconds
* since unix epoch.
*/
class PDU_API add_system_time : virtual public gr::block
{
public:
typedef std::shared_ptr<add_system_time> sptr;
/*!
* \brief Return a shared_ptr to a new instance of pdu::add_system_time.
*
* @param key - key to use for system time metadata field
*/
static sptr make(const pmt::pmt_t key);
};
} // namespace pdu
} // namespace gr
#endif /* INCLUDED_PDU_ADD_SYSTEM_TIME_H */
gr::block
The abstract base class for all 'terminal' processing blocks.
Definition gnuradio-runtime/include/gnuradio/block.h:63
gr::pdu::add_system_time
Adds system time to a PDU's metadata.
Definition add_system_time.h:28
gr::pdu::add_system_time::sptr
std::shared_ptr< add_system_time > sptr
Definition add_system_time.h:30
gr::pdu::add_system_time::make
static sptr make(const pmt::pmt_t key)
Return a shared_ptr to a new instance of pdu::add_system_time.
block.h
api.h
PDU_API
#define PDU_API
Definition gr-pdu/include/gnuradio/pdu/api.h:18
gr::pdu
Definition pdu.h:47
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