00001 /* 00002 $Id: demain.h,v 1.4 2004/12/12 23:53:55 pecos Exp $ 00003 */ 00004 00005 /* ********* 00006 * 00007 * This file is part of: 00008 * NePSing, Network Protocol Simulator next generation 00009 * 00010 * Copyright (C) 2004 Tommaso Pecorella <tpecorella@mac.com> 00011 * 00012 * This library is free software; you can redistribute it and/or 00013 * modify it under the terms of the GNU Lesser General Public 00014 * License as published by the Free Software Foundation; either 00015 * version 2.1 of the License, or (at your option) any later version. 00016 * 00017 * This library is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00020 * Lesser General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU Lesser General Public 00023 * License along with this library; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 * 00026 ********* */ 00027 00037 #ifndef ___DEMAIN_H___ 00038 #define ___DEMAIN_H___ 00039 00040 #include "desystem.h" 00041 00042 00043 void DEMain(); 00044 int ReadParameterFile(class ParamManager *Param); 00045 00046 template<class T> void RunSimul() 00047 { 00048 ParamManager Param; 00049 00050 DESystem::addParameters(&Param); 00051 00052 ProbeManager ProbeMgr(&Param); 00053 GlobalProbeManager Results; 00054 00055 T::setup(&Param, &Results); 00056 00057 if (ReadParameterFile(&Param)) 00058 { 00059 T(&Param, &Results, &ProbeMgr).Run(); 00060 } 00061 }; 00062 00063 00064 #endif 00065 00170 /* 00171 00172 $Log: demain.h,v $ 00173 Revision 1.4 2004/12/12 23:53:55 pecos 00174 No log message. 00175 00176 Revision 1.3 2004/12/12 23:44:45 pecos 00177 Added Copyright message - LGPL 00178 00179 Revision 1.2 2004/12/11 23:53:25 pecos 00180 Added DoxyGen comments 00181 00182 Revision 1.1.1.1 2004/07/08 16:59:33 pecos 00183 NePSing framework 00184 00185 Revision 1.2 2000/01/20 11:21:58 pecos 00186 no message 00187 00188 Revision 1.1.1.1 1999/05/24 15:59:57 inesis 00189 INeSiS Project 00190 00191 Revision 1.1.1.1 1999/05/24 15:17:20 inesis 00192 INeSiS Project 00193 00194 00195 */