![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /******************************************************************************* 00002 * This file is part of openWNS (open Wireless Network Simulator) 00003 * _____________________________________________________________________________ 00004 * 00005 * Copyright (C) 2004-2007 00006 * Chair of Communication Networks (ComNets) 00007 * Kopernikusstr. 16, D-52074 Aachen, Germany 00008 * phone: ++49-241-80-27910, 00009 * fax: ++49-241-80-22242 00010 * email: info@openwns.org 00011 * www: http://www.openwns.org 00012 * _____________________________________________________________________________ 00013 * 00014 * openWNS is free software; you can redistribute it and/or modify it under the 00015 * terms of the GNU Lesser General Public License version 2 as published by the 00016 * Free Software Foundation; 00017 * 00018 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00019 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00020 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00021 * details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public License 00024 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00025 * 00026 ******************************************************************************/ 00027 00028 #ifndef CONSTANZE_COMPONENT_HPP 00029 #define CONSTANZE_COMPONENT_HPP 00030 00031 #include <CONSTANZE/Generator.hpp> 00032 00033 #include <WNS/node/component/Component.hpp> 00034 #include <WNS/logger/Logger.hpp> 00035 00036 #include <list> 00037 00038 namespace constanze { 00039 00040 class GeneratorBase; 00041 class Binding; 00042 class Listener; 00043 00047 class ConstanzeComponent : 00048 virtual public wns::node::component::Component 00049 { 00050 public: 00059 ConstanzeComponent( 00060 wns::node::Interface* _node, 00061 const wns::pyconfig::View& _pyco); 00062 00066 virtual ~ConstanzeComponent(); 00067 00071 virtual void 00072 onNodeCreated(); 00073 00077 virtual void 00078 onWorldCreated(); 00079 00083 virtual void 00084 onShutdown(); 00085 00086 private: 00090 virtual void 00091 doStartup(); 00092 00096 std::list<constanze::GeneratorBase*> listOfGenerators; 00097 00101 std::list<constanze::Binding*> listOfGeneratorBindings; 00102 00106 std::list<constanze::Listener*> listOfListeners; 00107 00111 std::list<constanze::Binding*> listOfListenerBindings; 00112 00116 wns::pyconfig::View pyco; 00117 00121 wns::logger::Logger log; 00122 }; 00123 } 00124 00125 #endif // _CONSTANZE_COMPONENT_HPP 00126 00127 /* 00128 Local Variables: 00129 mode: c++ 00130 fill-column: 80 00131 c-basic-offset: 8 00132 c-comment-only-line-offset: 0 00133 c-tab-always-indent: t 00134 indent-tabs-mode: t 00135 tab-width: 8 00136 End: 00137 */
1.5.5