SUMO - Simulation of Urban MObility
NIXMLTypesHandler.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Importer for edge type information stored in XML
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2015 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef NIXMLTypesHandler_h
23 #define NIXMLTypesHandler_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class NBTypeCont;
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
55 public:
61 
62 
65 
66 
67 protected:
69 
70 
82  void myStartElement(int element,
83  const SUMOSAXAttributes& attrs);
85 
86 
87 private:
90 
92  std::string myCurrentTypeID;
93 
94 
95 private:
98 
101 
102 
103 };
104 
105 
106 #endif
107 
108 /****************************************************************************/
109 
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:62