SUMO - Simulation of Urban MObility
NIImporter_RobocupRescue.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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // Importer for networks stored in robocup rescue league format
19 /****************************************************************************/
20 #ifndef NIImporter_RobocupRescue_h
21 #define NIImporter_RobocupRescue_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <string>
34 #include <map>
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class NBNetBuilder;
42 class NBEdge;
43 class OptionsCont;
44 
45 
46 // ===========================================================================
47 // class definitions
48 // ===========================================================================
55 public:
65  static void loadNetwork(const OptionsCont& oc, NBNetBuilder& nb);
66 
67 
68 protected:
75 
76 
79 
80 
84  void loadNodes(const std::string& file);
85 
86 
90  void loadEdges(const std::string& file);
91 
92 
93 protected:
96 
99 
100 private:
103 };
104 
105 
106 #endif
107 
108 /****************************************************************************/
109 
Importer for networks stored in robocup rescue league format.
NIImporter_RobocupRescue(NBNodeCont &nc, NBEdgeCont &ec)
Constructor.
The representation of a single edge during network building.
Definition: NBEdge.h:70
NBEdgeCont & myEdgeCont
The edge container to fill.
NIImporter_RobocupRescue & operator=(const NIImporter_RobocupRescue &s)
Invalidated assignment operator.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given RoboCup Rescue League files.
void loadNodes(const std::string &file)
Loads nodes from the given file.
Storage for edges, including some functionality operating on multiple edges.
Definition: NBEdgeCont.h:66
Instance responsible for building networks.
Definition: NBNetBuilder.h:115
A storage for options typed value containers)
Definition: OptionsCont.h:98
NBNodeCont & myNodeCont
The node container to fill.
Container for nodes during the netbuilding process.
Definition: NBNodeCont.h:66
void loadEdges(const std::string &file)
Loads edges from the given file.