SUMO - Simulation of Urban MObility
NWWriter_XML.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 /****************************************************************************/
19 // Exporter writing networks using XML (native input) format
20 /****************************************************************************/
21 #ifndef NWWriter_XML_h
22 #define NWWriter_XML_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <string>
35 #include <map>
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class NBEdge;
44 class NBEdgeCont;
45 class NBNetBuilder;
46 class NBNode;
47 class NBNodeCont;
48 class NBParkingCont;
49 class NBPTStopCont;
50 class NBPTLineCont;
52 class NBTypeCont;
53 class OptionsCont;
54 
55 
56 // ===========================================================================
57 // class definitions
58 // ===========================================================================
64 class NWWriter_XML {
65 public:
71  static void writeNetwork(const OptionsCont& oc, NBNetBuilder& nb);
72 
77  static void writeJoinedJunctions(const OptionsCont& oc, NBNodeCont& nc);
78 
83  static void writeStreetSigns(const OptionsCont& oc, NBEdgeCont& ec);
84 
85 private:
90  static void writeNodes(const OptionsCont& oc, NBNodeCont& nc);
91 
96  static void writeTypes(const OptionsCont& oc, NBTypeCont& tc);
97 
102  static void writeEdgesAndConnections(const OptionsCont& oc, NBNodeCont& nc, NBEdgeCont& ec);
103 
104 
110  static void writeTrafficLights(const OptionsCont& oc, NBTrafficLightLogicCont& tc, NBEdgeCont& ec);
111 
116  static void writePTStops(const OptionsCont& oc, NBPTStopCont& ec);
117  static void writePTLines(const OptionsCont& cont, NBPTLineCont& lc, NBEdgeCont& ec);
118 
120  static void writeParkingAreas(const OptionsCont& cont, NBParkingCont& pc, NBEdgeCont& ec);
121 };
122 
123 
124 #endif
125 
126 /****************************************************************************/
127 
static void writeStreetSigns(const OptionsCont &oc, NBEdgeCont &ec)
Writes street signs as POIs to file.
A container for traffic light definitions and built programs.
Exporter writing networks using XML (native input) format.
Definition: NWWriter_XML.h:64
The representation of a single edge during network building.
Definition: NBEdge.h:70
static void writeJoinedJunctions(const OptionsCont &oc, NBNodeCont &nc)
Writes the joined-juncionts to file.
static void writeParkingAreas(const OptionsCont &cont, NBParkingCont &pc, NBEdgeCont &ec)
writes imported parking areas to file
static void writeNodes(const OptionsCont &oc, NBNodeCont &nc)
Writes the nodes file.
static void writeTrafficLights(const OptionsCont &oc, NBTrafficLightLogicCont &tc, NBEdgeCont &ec)
Writes the traffic lights file.
Storage for edges, including some functionality operating on multiple edges.
Definition: NBEdgeCont.h:66
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network into XML-files (nodes, edges, connections, traffic lights)
static void writeTypes(const OptionsCont &oc, NBTypeCont &tc)
Writes the types file.
static void writePTStops(const OptionsCont &oc, NBPTStopCont &ec)
Writes the pt stops file.
static void writeEdgesAndConnections(const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec)
Writes the edges and connections files.
Instance responsible for building networks.
Definition: NBNetBuilder.h:115
A storage for options typed value containers)
Definition: OptionsCont.h:98
Represents a single node (junction) during network building.
Definition: NBNode.h:74
Container for nodes during the netbuilding process.
Definition: NBNodeCont.h:66
static void writePTLines(const OptionsCont &cont, NBPTLineCont &lc, NBEdgeCont &ec)
A storage for available types of edges.
Definition: NBTypeCont.h:61