GNU Radio 3.2.2 C++ API
mb_runtime_nop.h
Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2007 Free Software Foundation, Inc.
00004  * 
00005  * This file is part of GNU Radio
00006  * 
00007  * GNU Radio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 3, or (at your option)
00010  * any later version.
00011  * 
00012  * GNU Radio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License along
00018  * with this program; if not, write to the Free Software Foundation, Inc.,
00019  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00020  */
00021 #ifndef INCLUDED_MB_RUNTIME_NOP_H
00022 #define INCLUDED_MB_RUNTIME_NOP_H
00023 
00024 #include <mb_runtime_base.h>
00025 
00026 /*!
00027  * \brief Public constructor (factory) for mb_runtime_nop objects.
00028  */
00029 mb_runtime_sptr mb_make_runtime_nop();
00030 
00031 /*!
00032  * \brief Concrete runtime that does nothing.  Used only during early QA tests.
00033  */
00034 class mb_runtime_nop : public mb_runtime_base
00035 {
00036 public:
00037   mb_runtime_nop();
00038   ~mb_runtime_nop();
00039 
00040   bool run(const std::string &instance_name,
00041            const std::string &class_name,
00042            pmt_t user_arg,
00043            pmt_t *result);
00044 
00045 protected:
00046   mb_mblock_sptr
00047   create_component(const std::string &instance_name,
00048                    const std::string &class_name,
00049                    pmt_t user_arg);
00050 };
00051 
00052 #endif /* INCLUDED_MB_RUNTIME_NOP_H */