SUMO - Simulation of Urban MObility
NIXMLTypesHandler.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-2018 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 /****************************************************************************/
17 // Importer for edge type information stored in XML
18 /****************************************************************************/
19 #ifndef NIXMLTypesHandler_h
20 #define NIXMLTypesHandler_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class NBTypeCont;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
48 public:
54 
55 
58 
59 
60 protected:
62 
63 
75  void myStartElement(int element,
76  const SUMOSAXAttributes& attrs);
78 
79 
80 private:
83 
85  std::string myCurrentTypeID;
86 
87 
88 private:
91 
94 
95 
96 };
97 
98 
99 #endif
100 
101 /****************************************************************************/
102 
std::string myCurrentTypeID
The currently parsed type.
SAX-handler base for SUMO-files.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag; Parses edge type information.
NBTypeCont & myTypeCont
The type container to fill.
Encapsulated SAX-Attributes.
~NIXMLTypesHandler()
Destructor.
NIXMLTypesHandler(NBTypeCont &tc)
Constructor.
Importer for edge type information stored in XML.
NIXMLTypesHandler & operator=(const NIXMLTypesHandler &s)
invalid assignment operator
A storage for available types of edges.
Definition: NBTypeCont.h:55