SUMO - Simulation of Urban MObility
NILoader.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Perfoms network import
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2016 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 NILoader_h
23 #define NILoader_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 
35 #include <string>
36 #include <vector>
37 #include <xercesc/sax2/SAX2XMLReader.hpp>
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class OptionsCont;
44 class SUMOSAXHandler;
45 class NBNetBuilder;
46 class Position;
47 class PositionVector;
48 
49 
50 // ===========================================================================
51 // class definitions
52 // ===========================================================================
59 class NILoader {
60 public:
65 
66 
68  ~NILoader();
69 
70 
72  void load(OptionsCont& oc);
73 
74 private:
76  //void loadSUMO(OptionsCont &oc);
77 
79  void loadXML(OptionsCont& oc);
80 
82  void loadXMLType(SUMOSAXHandler* handler, const std::vector<std::string>& files,
83  const std::string& type, const bool stringParse = false);
84 
85 private:
88 
89 
90 private:
92  NILoader(const NILoader&);
93 
95  NILoader& operator=(const NILoader&);
96 
97 
98 };
99 
100 
101 #endif
102 
103 /****************************************************************************/
104 
NILoader & operator=(const NILoader &)
Invalidated assignment operator.
SAX-handler base for SUMO-files.
Perfoms network import.
Definition: NILoader.h:59
void loadXMLType(SUMOSAXHandler *handler, const std::vector< std::string > &files, const std::string &type, const bool stringParse=false)
Definition: NILoader.cpp:182
~NILoader()
Destructor.
Definition: NILoader.cpp:83
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
A list of positions.
void load(OptionsCont &oc)
Definition: NILoader.cpp:87
void loadXML(OptionsCont &oc)
Definition: NILoader.cpp:155
Instance responsible for building networks.
Definition: NBNetBuilder.h:112
A storage for options typed value containers)
Definition: OptionsCont.h:99
NBNetBuilder & myNetBuilder
The network builder to fill with loaded data.
Definition: NILoader.h:87
NILoader(NBNetBuilder &nb)
Constructor.
Definition: NILoader.cpp:79