msg_accepter.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2007,2008 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_MSG_ACCEPTER_H
00022 #define INCLUDED_MB_MSG_ACCEPTER_H
00023 
00024 #include <mblock/common.h>
00025 
00026 /*!
00027  * \brief Abstract class that accepts messages
00028  *
00029  * The mb_port::send method ultimately resolves the (local)
00030  * destination of a send to an object of this type.  The resulting 
00031  * object is called to deliver the message.
00032  *
00033  * Expect derived classes such as these:
00034  *
00035  *  smp      : target is visible in this address space
00036  *  mpi      : target is on the other end of an MPI link
00037  *  ppe->spe : sending from Cell PPE to Cell SPE
00038  *  spe->ppe : sending from Cell SPE to Cell PPE
00039  */
00040 class mb_msg_accepter {
00041 public:
00042   mb_msg_accepter(){};
00043   virtual ~mb_msg_accepter();
00044 
00045   virtual void operator()(pmt_t signal, pmt_t data, pmt_t metadata, mb_pri_t priority) = 0;
00046 };
00047 
00048 #endif /* INCLUDED_MB_MSG_ACCEPTER_H */

Generated on Wed Jul 29 06:29:48 2009 for GNU Radio 3.2.2 C++ API by  doxygen 1.5.9