split_cc_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2014 Communications Engineering Lab, KIT.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef INCLUDED_RADAR_SPLIT_CC_IMPL_H
#define INCLUDED_RADAR_SPLIT_CC_IMPL_H
#include <radar/split_cc.h>
namespace gr {
namespace radar {
class split_cc_impl : public split_cc
{
private:
// Nothing to declare in this block.
protected:
int calculate_output_stream_length(const gr_vector_int& ninput_items);
public:
split_cc_impl(int packet_num,
const std::vector<int> packet_parts,
const std::string& len_key);
~split_cc_impl();
int d_packet_num, d_offset;
std::vector<int> d_packet_parts;
std::vector<tag_t> d_tags;
// Where all the action really happens
int work(int noutput_items,
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items);
};
} // namespace radar
} // namespace gr
#endif /* INCLUDED_RADAR_SPLIT_CC_IMPL_H */
gr::radar::split_cc_impl::d_tags
std::vector< tag_t > d_tags
Definition split_cc_impl.h:45
gr::radar::split_cc_impl::~split_cc_impl
~split_cc_impl()
gr::radar::split_cc_impl::split_cc_impl
split_cc_impl(int packet_num, const std::vector< int > packet_parts, const std::string &len_key)
gr::radar::split_cc_impl::d_packet_parts
std::vector< int > d_packet_parts
Definition split_cc_impl.h:44
gr::radar::split_cc_impl::calculate_output_stream_length
int calculate_output_stream_length(const gr_vector_int &ninput_items)
gr::radar::split_cc_impl::d_offset
int d_offset
Definition split_cc_impl.h:43
gr::radar::split_cc_impl::work
int work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::radar::split_cc_impl::d_packet_num
int d_packet_num
Definition split_cc_impl.h:43
gr::radar::split_cc
This block splits a tagged stream into segments. As packet_parts you give the structure of the packet...
Definition split_cc.h:44
gr::radar
Definition crop_matrix_vcvc.h:29
gr
Definition crop_matrix_vcvc.h:28
split_cc.h