SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NILoader.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Perfoms network import
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12 // Copyright (C) 2001-2012 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 class GeoConvHelper;
49 
50 
51 // ===========================================================================
52 // class definitions
53 // ===========================================================================
60 class NILoader {
61 public:
65  NILoader(NBNetBuilder& nb) ;
66 
67 
69  ~NILoader() ;
70 
71 
73  void load(OptionsCont& oc);
74 
82  static bool transformCoordinates(Position& from, bool includeInBoundary = true, GeoConvHelper* from_srs = 0);
83  static bool transformCoordinates(PositionVector& from, bool includeInBoundary = true, GeoConvHelper* from_srs = 0);
84 
85 private:
87  //void loadSUMO(OptionsCont &oc);
88 
90  void loadXML(OptionsCont& oc);
91 
93  void loadXMLType(SUMOSAXHandler* handler,
94  const std::vector<std::string> &files, const std::string& type);
95 
96 private:
99 
100 
101 private:
103  NILoader(const NILoader&);
104 
106  NILoader& operator=(const NILoader&);
107 
108 
109 };
110 
111 
112 #endif
113 
114 /****************************************************************************/
115