Eclipse 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-2019 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 /****************************************************************************/
14 // -------------------
15 /****************************************************************************/
16 #ifndef NIVissimVehicleType_h
17 #define NIVissimVehicleType_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 
26 #include <utils/common/RGBColor.h>
27 #include <string>
28 #include <map>
29 
30 // ===========================================================================
31 // class definitions
32 // ===========================================================================
37 public:
38  NIVissimVehicleType(const std::string& name,
39  const std::string& category, const RGBColor& color);
41  static bool dictionary(int id, const std::string& name,
42  const std::string& category, const RGBColor& color);
43  static bool dictionary(int id, NIVissimVehicleType* o);
44  static NIVissimVehicleType* dictionary(int id);
45  static void clearDict();
46 
47 private:
48  std::string myName;
49  std::string myCategory;
51 private:
52  typedef std::map<int, NIVissimVehicleType*> DictType;
53  static DictType myDict;
54 };
55 
56 
57 #endif
58 
59 /****************************************************************************/
60 
NIVissimVehicleType::NIVissimVehicleType
NIVissimVehicleType(const std::string &name, const std::string &category, const RGBColor &color)
Definition: NIVissimVehicleType.cpp:28
NIVissimVehicleType::~NIVissimVehicleType
~NIVissimVehicleType()
Definition: NIVissimVehicleType.cpp:34
RGBColor.h
RGBColor
Definition: RGBColor.h:39
NIVissimVehicleType::myColor
RGBColor myColor
Definition: NIVissimVehicleType.h:50
NIVissimVehicleType::myDict
static DictType myDict
Definition: NIVissimVehicleType.h:53
NIVissimVehicleType::clearDict
static void clearDict()
Definition: NIVissimVehicleType.cpp:71
NIVissimVehicleType::myName
std::string myName
Definition: NIVissimVehicleType.h:48
NIVissimVehicleType::myCategory
std::string myCategory
Definition: NIVissimVehicleType.h:49
config.h
NIVissimVehicleType
Definition: NIVissimVehicleType.h:36
NIVissimVehicleType::DictType
std::map< int, NIVissimVehicleType * > DictType
Definition: NIVissimVehicleType.h:52
NIVissimVehicleType::dictionary
static bool dictionary(int id, const std::string &name, const std::string &category, const RGBColor &color)
Definition: NIVissimVehicleType.cpp:39