24 #include <boost/foreach.hpp>
25 #include <boost/format.hpp>
36 gr::io_signature::make(1, 1, sizeof(std::complex<float>)),
37 gr::io_signature::make(0, 0, 0)
50 std::vector<gr::tag_t> rx_time_tags;
54 BOOST_FOREACH(
const gr::tag_t &rx_time_tag, rx_time_tags){
58 std::cout << boost::format(
"Full seconds %u, Frac seconds %f, abs sample offset %u")
PMT_API pmt_t tuple_ref(const pmt_t &tuple, size_t k)
pmt::pmt_t value
the value of tag (as a PMT)
Definition: tags.h:40
uint64_t offset
the item tag occurred at (as a uint64_t)
Definition: tags.h:34
std::vector< const void * > gr_vector_const_void_star
Definition: gnuradio-runtime/include/gnuradio/types.h:38
tag_sink_demo(void)
Definition: tag_sink_demo.h:33
uint64_t nitems_read(unsigned int which_input)
Return the number of items read on input stream which_input.
PMT_API pmt_t string_to_symbol(const std::string &s)
Return the symbol whose name is s.
std::vector< void * > gr_vector_void_star
Definition: gnuradio-runtime/include/gnuradio/types.h:37
PMT_API uint64_t to_uint64(pmt_t x)
Convert pmt to uint64 if possible.
unsigned __int64 uint64_t
Definition: stdint.h:90
synchronous 1:1 input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_block.h:37
Definition: tag_sink_demo.h:29
PMT_API double to_double(pmt_t x)
Convert pmt to double if possible.
sync_block(void)
Definition: sync_block.h:40
void get_tags_in_range(std::vector< tag_t > &v, unsigned int which_input, uint64_t abs_start, uint64_t abs_end)
Given a [start,end), returns a vector of all tags in the range.
boost::intrusive_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting). See http://www.boost.org/libs/smart_ptr/smart_ptr.htm
Definition: pmt.h:56
int work(int ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
just like gr::block::general_work, only this arranges to call consume_each for you ...
Definition: tag_sink_demo.h:43