SUMO - Simulation of Urban MObility
NIVissimSource.h
Go to the documentation of this file.
00001 /****************************************************************************/
00007 // -------------------
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This file is part of SUMO.
00014 //   SUMO is free software: you can redistribute it and/or modify
00015 //   it under the terms of the GNU General Public License as published by
00016 //   the Free Software Foundation, either version 3 of the License, or
00017 //   (at your option) any later version.
00018 //
00019 /****************************************************************************/
00020 #ifndef NIVissimSource_h
00021 #define NIVissimSource_h
00022 
00023 
00024 // ===========================================================================
00025 // included modules
00026 // ===========================================================================
00027 #ifdef _MSC_VER
00028 #include <windows_config.h>
00029 #else
00030 #include <config.h>
00031 #endif
00032 
00033 
00034 #include <string>
00035 #include <map>
00036 
00037 // ===========================================================================
00038 // class definitions
00039 // ===========================================================================
00043 class NIVissimSource {
00044 public:
00045     NIVissimSource(const std::string& id, const std::string& name,
00046                    const std::string& edgeid, SUMOReal q, bool exact,
00047                    int vehicle_combination, SUMOReal beg, SUMOReal end);
00048     ~NIVissimSource();
00049     static bool dictionary(const std::string& id, const std::string& name,
00050                            const std::string& edgeid, SUMOReal q, bool exact,
00051                            int vehicle_combination, SUMOReal beg, SUMOReal end);
00052     static bool dictionary(const std::string& id, NIVissimSource* o);
00053     static NIVissimSource* dictionary(const std::string& id);
00054     static void clearDict();
00055 private:
00056     std::string myID;
00057     std::string myName;
00058     std::string myEdgeID;
00059     SUMOReal myQ;
00060     bool myExact;
00061     int myVehicleCombination;
00062     SUMOReal myTimeBeg;
00063     SUMOReal myTimeEnd;
00064 
00065 private:
00066     typedef std::map<std::string, NIVissimSource*> DictType;
00067     static DictType myDict;
00068 };
00069 
00070 
00071 #endif
00072 
00073 /****************************************************************************/
00074 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines