probemanager.h

Go to the documentation of this file.
00001 #ifndef ___PROBEMANAGER_H___
00002 #define ___PROBEMANAGER_H___
00003 
00004 #include <string>
00005 #include "detime.h"
00006 #include "parmanager.h"
00007 
00008 /* *********
00009 *  
00010 *  This file is part of:
00011 *  NePSing, Network Protocol Simulator next generation
00012 *  
00013 *  Copyright (C) 2004  Tommaso Pecorella <tpecorella@mac.com>
00014 *  
00015 *  This library is free software; you can redistribute it and/or
00016 *  modify it under the terms of the GNU Lesser General Public
00017 *  License as published by the Free Software Foundation; either
00018 *  version 2.1 of the License, or (at your option) any later version.
00019 *  
00020 *  This library is distributed in the hope that it will be useful,
00021 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023 *  Lesser General Public License for more details.
00024 *  
00025 *  You should have received a copy of the GNU Lesser General Public
00026 *  License along with this library; if not, write to the Free Software
00027 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00028 *  
00029 ********* */
00030 
00036 
00058 class Probe;
00059 
00060 class ProbeManager
00061 {
00062  protected:
00063   ParamManager* Param;
00064   list<Probe *> theProbes;
00065   map<string,bool> theProbesNames;
00066   
00067   DETime ProbeOutInterval;
00068   
00069   string BaseFileName;
00070   string PreFileName;
00071   string PostFileName;
00072   
00073   DETime StartCollectAt;
00074   bool CollectionStarted;
00075   
00076  public:
00077   ProbeManager( ParamManager* _Param );
00078   ~ProbeManager();
00079   
00080   void Initialize( int RunNumber );
00081   
00082   void RegisterProbe( Probe *theProbe, bool isGlobal );
00083   void UnRegisterProbe( Probe *theProbe );
00084   
00085   void WriteToFile(double Time);
00086 };
00087 
00089 
00090 #endif
00091 

Generated on Wed Dec 22 23:23:48 2004 for NePSing by doxygen 1.3.9.1 ---- Hosted by SourceForge.net Logo