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-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 // Perfoms network import
18 /****************************************************************************/
19 #ifndef NILoader_h
20 #define NILoader_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
29 #include <vector>
30 #include <xercesc/sax2/SAX2XMLReader.hpp>
31 
32 
33 // ===========================================================================
34 // class declarations
35 // ===========================================================================
36 class OptionsCont;
37 class SUMOSAXHandler;
38 class NBNetBuilder;
39 class Position;
40 class PositionVector;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
52 class NILoader {
53 public:
58 
59 
61  ~NILoader();
62 
63 
65  void load(OptionsCont& oc);
66 
67 private:
69  //void loadSUMO(OptionsCont &oc);
70 
72  void loadXML(OptionsCont& oc);
73 
75  void loadXMLType(SUMOSAXHandler* handler, const std::vector<std::string>& files,
76  const std::string& type, const bool stringParse = false);
77 
78 private:
81 
82 
83 private:
85  NILoader(const NILoader&);
86 
88  NILoader& operator=(const NILoader&);
89 
90 
91 };
92 
93 
94 #endif
95 
96 /****************************************************************************/
97 
NILoader & operator=(const NILoader &)
Invalidated assignment operator.
SAX-handler base for SUMO-files.
Perfoms network import.
Definition: NILoader.h:52
void loadXMLType(SUMOSAXHandler *handler, const std::vector< std::string > &files, const std::string &type, const bool stringParse=false)
Definition: NILoader.cpp:192
~NILoader()
Destructor.
Definition: NILoader.cpp:71
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
A list of positions.
void load(OptionsCont &oc)
Definition: NILoader.cpp:74
void loadXML(OptionsCont &oc)
Definition: NILoader.cpp:150
Instance responsible for building networks.
Definition: NBNetBuilder.h:109
A storage for options typed value containers)
Definition: OptionsCont.h:92
NBNetBuilder & myNetBuilder
The network builder to fill with loaded data.
Definition: NILoader.h:80
NILoader(NBNetBuilder &nb)
Constructor.
Definition: NILoader.cpp:68