NIXMLConnectionsHandler.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Importer for edge connections stored in XML
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright 2001-2010 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef NIXMLConnectionsHandler_h
00020 #define NIXMLConnectionsHandler_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include <utils/xml/SUMOSAXHandler.h>
00033 #include <netbuild/NBConnection.h>
00034 
00035 
00036 // ===========================================================================
00037 // class declarations
00038 // ===========================================================================
00039 class NBEdge;
00040 class NBEdgeCont;
00041 
00042 
00043 // ===========================================================================
00044 // class definitions
00045 // ===========================================================================
00053 class NIXMLConnectionsHandler : public SUMOSAXHandler {
00054 public:
00058     NIXMLConnectionsHandler(NBEdgeCont &ec) throw();
00059 
00060 
00062     ~NIXMLConnectionsHandler() throw();
00063 
00064 
00065 protected:
00067 
00068 
00076     void myStartElement(SumoXMLTag element,
00077                         const SUMOSAXAttributes &attrs) throw(ProcessError);
00079 
00080 private:
00089     NBConnection parseConnection(const std::string &defRole, const std::string &def) throw();
00090 
00091 
00097     void parseLaneBound(const SUMOSAXAttributes &attrs,NBEdge *from,
00098                         NBEdge *to) throw();
00099 
00100 
00101 private:
00103     bool myHaveReportedAboutFunctionDeprecation;
00104 
00106     NBEdgeCont &myEdgeCont;
00107 
00108 
00109 private:
00111     NIXMLConnectionsHandler(const NIXMLConnectionsHandler &s);
00112 
00114     NIXMLConnectionsHandler &operator=(const NIXMLConnectionsHandler &s);
00115 
00116 
00117 };
00118 
00119 
00120 #endif
00121 
00122 /****************************************************************************/
00123 

Generated on Wed May 5 00:06:34 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6