Eclipse 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-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 // Importer for networks stored in robocup rescue league format
16 /****************************************************************************/
17 #ifndef NIImporter_RobocupRescue_h
18 #define NIImporter_RobocupRescue_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <string>
27 #include <map>
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class NBNetBuilder;
35 class NBEdge;
36 class OptionsCont;
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
48 public:
58  static void loadNetwork(const OptionsCont& oc, NBNetBuilder& nb);
59 
60 
61 protected:
68 
69 
72 
73 
77  void loadNodes(const std::string& file);
78 
79 
83  void loadEdges(const std::string& file);
84 
85 
86 protected:
89 
92 
93 private:
96 };
97 
98 
99 #endif
100 
101 /****************************************************************************/
102 
NBEdgeCont
Storage for edges, including some functionality operating on multiple edges.
Definition: NBEdgeCont.h:60
NBNetBuilder
Instance responsible for building networks.
Definition: NBNetBuilder.h:109
SUMOSAXHandler.h
NIImporter_RobocupRescue::myEdgeCont
NBEdgeCont & myEdgeCont
The edge container to fill.
Definition: NIImporter_RobocupRescue.h:91
NBNodeCont
Container for nodes during the netbuilding process.
Definition: NBNodeCont.h:59
NBEdge
The representation of a single edge during network building.
Definition: NBEdge.h:91
NIImporter_RobocupRescue::loadNodes
void loadNodes(const std::string &file)
Loads nodes from the given file.
Definition: NIImporter_RobocupRescue.cpp:98
NIImporter_RobocupRescue::loadNetwork
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given RoboCup Rescue League files.
Definition: NIImporter_RobocupRescue.cpp:53
OptionsCont
A storage for options typed value containers)
Definition: OptionsCont.h:89
NIImporter_RobocupRescue::~NIImporter_RobocupRescue
~NIImporter_RobocupRescue()
Destructor.
Definition: NIImporter_RobocupRescue.cpp:93
NIImporter_RobocupRescue::myNodeCont
NBNodeCont & myNodeCont
The node container to fill.
Definition: NIImporter_RobocupRescue.h:88
NIImporter_RobocupRescue::NIImporter_RobocupRescue
NIImporter_RobocupRescue(NBNodeCont &nc, NBEdgeCont &ec)
Constructor.
Definition: NIImporter_RobocupRescue.cpp:89
NIImporter_RobocupRescue::operator=
NIImporter_RobocupRescue & operator=(const NIImporter_RobocupRescue &s)
Invalidated assignment operator.
config.h
NIImporter_RobocupRescue::loadEdges
void loadEdges(const std::string &file)
Loads edges from the given file.
Definition: NIImporter_RobocupRescue.cpp:166
NIImporter_RobocupRescue
Importer for networks stored in robocup rescue league format.
Definition: NIImporter_RobocupRescue.h:47