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-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 // Importer for edge type information stored in XML
20 /****************************************************************************/
21 #ifndef NIXMLTypesHandler_h
22 #define NIXMLTypesHandler_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 
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class NBTypeCont;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
54 public:
60 
61 
64 
65 
66 protected:
68 
69 
81  void myStartElement(int element,
82  const SUMOSAXAttributes& attrs);
84 
85 
86 private:
89 
91  std::string myCurrentTypeID;
92 
93 
94 private:
97 
100 
101 
102 };
103 
104 
105 #endif
106 
107 /****************************************************************************/
108 
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:61