2015-05-28 17:23:55 +00:00
|
|
|
/* -*- c++ -*- */
|
|
|
|
/* @file
|
2017-08-23 14:02:19 +00:00
|
|
|
* @author (C) 2015 by Roman Khassraf <rkhassraf@gmail.com>
|
2015-05-28 17:23:55 +00:00
|
|
|
* @section LICENSE
|
|
|
|
*
|
|
|
|
* Gr-gsm 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.
|
|
|
|
*
|
|
|
|
* Gr-gsm 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 gr-gsm; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 51 Franklin Street,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-08-03 08:58:57 +00:00
|
|
|
#ifndef INCLUDED_GSM_BURST_FILE_SOURCE_H
|
|
|
|
#define INCLUDED_GSM_BURST_FILE_SOURCE_H
|
2015-05-28 17:23:55 +00:00
|
|
|
|
|
|
|
#include <grgsm/api.h>
|
|
|
|
#include <gnuradio/block.h>
|
|
|
|
|
|
|
|
namespace gr {
|
|
|
|
namespace gsm {
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief <+description of block+>
|
|
|
|
* \ingroup gsm
|
|
|
|
*
|
|
|
|
*/
|
2016-05-29 11:05:48 +00:00
|
|
|
class GRGSM_API burst_file_source : virtual public gr::block
|
2015-05-28 17:23:55 +00:00
|
|
|
{
|
|
|
|
public:
|
2015-08-03 08:58:57 +00:00
|
|
|
typedef boost::shared_ptr<burst_file_source> sptr;
|
2015-05-28 17:23:55 +00:00
|
|
|
|
|
|
|
/*!
|
2015-08-03 08:58:57 +00:00
|
|
|
* \brief Return a shared_ptr to a new instance of grgsm::burst_file_source.
|
2015-05-28 17:23:55 +00:00
|
|
|
*
|
2015-08-03 08:58:57 +00:00
|
|
|
* To avoid accidental use of raw pointers, grgsm::burst_file_source's
|
2015-05-28 17:23:55 +00:00
|
|
|
* constructor is in a private implementation
|
2015-08-03 08:58:57 +00:00
|
|
|
* class. grgsm::burst_file_source::make is the public interface for
|
2015-05-28 17:23:55 +00:00
|
|
|
* creating new instances.
|
|
|
|
*/
|
|
|
|
static sptr make(const std::string &filename);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace gsm
|
|
|
|
} // namespace gr
|
|
|
|
|
2015-08-03 08:58:57 +00:00
|
|
|
#endif /* INCLUDED_GSM_BURST_FILE_SOURCE_H */
|
2015-05-28 17:23:55 +00:00
|
|
|
|