SUMO - Simulation of Urban MObility
NIVissimVehicleType.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // -------------------
16 /****************************************************************************/
17 #ifndef NIVissimVehicleType_h
18 #define NIVissimVehicleType_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 
27 #include <utils/common/RGBColor.h>
28 #include <string>
29 #include <map>
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
38 public:
39  NIVissimVehicleType(const std::string& name,
40  const std::string& category, const RGBColor& color);
42  static bool dictionary(int id, const std::string& name,
43  const std::string& category, const RGBColor& color);
44  static bool dictionary(int id, NIVissimVehicleType* o);
45  static NIVissimVehicleType* dictionary(int id);
46  static void clearDict();
47 
48 private:
49  std::string myName;
50  std::string myCategory;
52 private:
53  typedef std::map<int, NIVissimVehicleType*> DictType;
54  static DictType myDict;
55 };
56 
57 
58 #endif
59 
60 /****************************************************************************/
61 
NIVissimVehicleType(const std::string &name, const std::string &category, const RGBColor &color)
static bool dictionary(int id, const std::string &name, const std::string &category, const RGBColor &color)
static DictType myDict
std::map< int, NIVissimVehicleType * > DictType