Eclipse SUMO - Simulation of Urban MObility
NIVissimSource.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 /****************************************************************************/
15 // -------------------
16 /****************************************************************************/
17 #ifndef NIVissimSource_h
18 #define NIVissimSource_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 
27 #include <string>
28 #include <map>
29 
30 // ===========================================================================
31 // class definitions
32 // ===========================================================================
37 public:
38  NIVissimSource(const std::string& id, const std::string& name,
39  const std::string& edgeid);
41  static bool dictionary(const std::string& id, const std::string& name,
42  const std::string& edgeid);
43  static bool dictionary(const std::string& id, NIVissimSource* o);
44  static NIVissimSource* dictionary(const std::string& id);
45  static void clearDict();
46 private:
47  std::string myID;
48  std::string myName;
49  std::string myEdgeID;
50 
51 private:
52  typedef std::map<std::string, NIVissimSource*> DictType;
53  static DictType myDict;
54 };
55 
56 
57 #endif
58 
59 /****************************************************************************/
60 
std::string myName
static void clearDict()
static DictType myDict
std::string myID
std::string myEdgeID
NIVissimSource(const std::string &id, const std::string &name, const std::string &edgeid)
std::map< std::string, NIVissimSource * > DictType
static bool dictionary(const std::string &id, const std::string &name, const std::string &edgeid)