NIVissimSource.h
Go to the documentation of this file.00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef NIVissimSource_h
00020 #define NIVissimSource_h
00021
00022
00023
00024
00025
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031
00032
00033 #include <string>
00034 #include <map>
00035
00036
00037
00038
00042 class NIVissimSource {
00043 public:
00044 NIVissimSource(const std::string &id, const std::string &name,
00045 const std::string &edgeid, SUMOReal q, bool exact,
00046 int vehicle_combination, SUMOReal beg, SUMOReal end);
00047 ~NIVissimSource();
00048 static bool dictionary(const std::string &id, const std::string &name,
00049 const std::string &edgeid, SUMOReal q, bool exact,
00050 int vehicle_combination, SUMOReal beg, SUMOReal end);
00051 static bool dictionary(const std::string &id, NIVissimSource *o);
00052 static NIVissimSource *dictionary(const std::string &id);
00053 static void clearDict();
00054 private:
00055 std::string myID;
00056 std::string myName;
00057 std::string myEdgeID;
00058 SUMOReal myQ;
00059 bool myExact;
00060 int myVehicleCombination;
00061 SUMOReal myTimeBeg;
00062 SUMOReal myTimeEnd;
00063
00064 private:
00065 typedef std::map<std::string, NIVissimSource*> DictType;
00066 static DictType myDict;
00067 };
00068
00069
00070 #endif
00071
00072
00073