Created
August 20, 2015 15:34
-
-
Save loganwashbourne/74b654d2a75746587306 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- c++ -*- */ | |
/* | |
* Copyright 2015 <+YOU OR YOUR COMPANY+>. | |
* | |
* 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_ACK_TEXT_SANITIZE_IMPL_H | |
#define INCLUDED_ACK_TEXT_SANITIZE_IMPL_H | |
#include <ACK/Text_Sanitize.h> | |
#include <gnuradio/block.h> | |
#include <gnuradio/thread/thread.h> | |
#include <pmt/pmt.h> | |
namespace gr { | |
namespace ACK { | |
class Text_Sanitize_impl : public Text_Sanitize | |
{ | |
private: | |
// Nothing to declare in this block. | |
pmt::pmt_t d_out_msg; | |
char* d_message; | |
void print_message(pmt::pmt_t d_message); | |
public: | |
Text_Sanitize_impl(char* message); | |
~Text_Sanitize_impl(); | |
// Where all the action really happens | |
void forecast (int noutput_items, gr_vector_int &ninput_items_required); | |
int general_work(int noutput_items, | |
gr_vector_int &ninput_items, | |
gr_vector_const_void_star &input_items, | |
gr_vector_void_star &output_items); | |
}; | |
} // namespace ACK | |
} // namespace gr | |
#endif /* INCLUDED_ACK_TEXT_SANITIZE_IMPL_H */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment