SUMO - Simulation of Urban MObility
NILoader.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 // Perfoms network import
20 /****************************************************************************/
21 #ifndef NILoader_h
22 #define NILoader_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 <vector>
36 #include <xercesc/sax2/SAX2XMLReader.hpp>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
42 class OptionsCont;
43 class SUMOSAXHandler;
44 class NBNetBuilder;
45 class Position;
46 class PositionVector;
47 
48 
49 // ===========================================================================
50 // class definitions
51 // ===========================================================================
58 class NILoader {
59 public:
64 
65 
67  ~NILoader();
68 
69 
71  void load(OptionsCont& oc);
72 
73 private:
75  //void loadSUMO(OptionsCont &oc);
76 
78  void loadXML(OptionsCont& oc);
79 
81  void loadXMLType(SUMOSAXHandler* handler, const std::vector<std::string>& files,
82  const std::string& type, const bool stringParse = false);
83 
84 private:
87 
88 
89 private:
91  NILoader(const NILoader&);
92 
94  NILoader& operator=(const NILoader&);
95 
96 
97 };
98 
99 
100 #endif
101 
102 /****************************************************************************/
103 
NILoader & operator=(const NILoader &)
Invalidated assignment operator.
SAX-handler base for SUMO-files.
Perfoms network import.
Definition: NILoader.h:58
void loadXMLType(SUMOSAXHandler *handler, const std::vector< std::string > &files, const std::string &type, const bool stringParse=false)
Definition: NILoader.cpp:180
~NILoader()
Destructor.
Definition: NILoader.cpp:76
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
A list of positions.
void load(OptionsCont &oc)
Definition: NILoader.cpp:79
void loadXML(OptionsCont &oc)
Definition: NILoader.cpp:152
Instance responsible for building networks.
Definition: NBNetBuilder.h:115
A storage for options typed value containers)
Definition: OptionsCont.h:98
NBNetBuilder & myNetBuilder
The network builder to fill with loaded data.
Definition: NILoader.h:86
NILoader(NBNetBuilder &nb)
Constructor.
Definition: NILoader.cpp:73