|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Marek Cerny, 2MSK 00003 // FIT VUT 2011 00004 // 00005 // This program is free software: you can redistribute it and/or modify 00006 // it under the terms of the GNU Lesser General Public License as published by 00007 // the Free Software Foundation, either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU Lesser General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with this program. If not, see http://www.gnu.org/licenses/. 00017 // 00018 00019 #ifndef __ANSAINET_CONFIGLOADER_H_ 00020 #define __ANSAINET_CONFIGLOADER_H_ 00021 00022 #include <omnetpp.h> 00023 00024 #include "ansaRoutingTable6Access.h" 00025 #include "AnsaInterfaceTableAccess.h" 00026 #include "InterfaceTableAccess.h" 00027 00028 00029 class DeviceConfigurator : public cSimpleModule { 00030 00031 protected: 00032 IInterfaceTable *ift; 00033 AnsaRoutingTable6 *rt6; 00034 00035 private: 00036 void loadDefaultRouter(cXMLElement *gateway); 00037 void loadInterfaceConfig(cXMLElement *iface); 00038 void loadStaticRouting(cXMLElement *route); 00039 00040 protected: 00041 virtual int numInitStages() const {return 4;} 00042 virtual void initialize(int stage); 00043 virtual void handleMessage(cMessage *msg); 00044 }; 00045 00046 #endif