Files
gr-foo/lib/periodic_msg_source_impl.h
T
2014-03-25 17:14:33 +01:00

47 lines
1.4 KiB
C++

/*
* Copyright (C) 2013 Bastian Bloessl <bloessl@ccs-labs.org>
*
* This program 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 of the License, or
* (at your option) any later version.
*
* This program 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 program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef INCLUDED_FOO_PERIODIC_MSG_SOURCE_IMPL_H
#define INCLUDED_FOO_PERIODIC_MSG_SOURCE_IMPL_H
#include <foo/periodic_msg_source.h>
namespace gr {
namespace foo {
class periodic_msg_source_impl : public periodic_msg_source {
private:
void run(periodic_msg_source_impl *instance);
int d_num_msg;
bool d_debug;
bool d_finished;
float d_interval;
pmt::pmt_t d_msg;
boost::shared_ptr<boost::thread> d_thread;
public:
periodic_msg_source_impl(pmt::pmt_t msg,
float interval, int num_msg, bool debug);
virtual ~periodic_msg_source_impl();
};
} // namespace foo
} // namespace gr
#endif /* INCLUDED_FOO_PERIODIC_MSG_SOURCE_IMPL_H */