Fawkes API Fawkes Development Version
|
00001 00002 /*************************************************************************** 00003 * message_manager.h - BlackBoard message manager 00004 * 00005 * Created: Fri Oct 06 11:29:51 2006 00006 * Copyright 2006-2008 Tim Niemueller [www.niemueller.de] 00007 * 00008 ****************************************************************************/ 00009 00010 /* This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. A runtime exception applies to 00014 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00022 */ 00023 00024 #ifndef __BLACKBOARD_MESSAGE_MANAGER_H_ 00025 #define __BLACKBOARD_MESSAGE_MANAGER_H_ 00026 00027 #include <interface/mediators/message_mediator.h> 00028 00029 namespace fawkes { 00030 00031 class BlackBoardInterfaceManager; 00032 class BlackBoardNotifier; 00033 class Message; 00034 00035 class BlackBoardMessageManager : public MessageMediator 00036 { 00037 friend class LocalBlackBoard; 00038 public: 00039 BlackBoardMessageManager(BlackBoardNotifier *notifier); 00040 ~BlackBoardMessageManager(); 00041 00042 virtual void transmit(Message *message); 00043 00044 private: 00045 BlackBoardInterfaceManager *__im; 00046 BlackBoardNotifier *__notifier; 00047 00048 void set_interface_manager(BlackBoardInterfaceManager *im); 00049 }; 00050 00051 } // end namespace fawkes 00052 00053 #endif