SUMO - Simulation of Urban MObility
NIXMLTypesHandler.h
Go to the documentation of this file.
00001 /****************************************************************************/
00009 // Importer for edge type information stored in XML
00010 /****************************************************************************/
00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00013 /****************************************************************************/
00014 //
00015 //   This file is part of SUMO.
00016 //   SUMO is free software: you can redistribute it and/or modify
00017 //   it under the terms of the GNU General Public License as published by
00018 //   the Free Software Foundation, either version 3 of the License, or
00019 //   (at your option) any later version.
00020 //
00021 /****************************************************************************/
00022 #ifndef NIXMLTypesHandler_h
00023 #define NIXMLTypesHandler_h
00024 
00025 
00026 // ===========================================================================
00027 // included modules
00028 // ===========================================================================
00029 #ifdef _MSC_VER
00030 #include <windows_config.h>
00031 #else
00032 #include <config.h>
00033 #endif
00034 
00035 #include <utils/xml/SUMOSAXHandler.h>
00036 
00037 
00038 // ===========================================================================
00039 // class declarations
00040 // ===========================================================================
00041 class NBTypeCont;
00042 
00043 
00044 // ===========================================================================
00045 // class definitions
00046 // ===========================================================================
00054 class NIXMLTypesHandler : public SUMOSAXHandler {
00055 public:
00060     NIXMLTypesHandler(NBTypeCont& tc);
00061 
00062 
00064     ~NIXMLTypesHandler() ;
00065 
00066 
00067 protected:
00069 
00070 
00082     void myStartElement(int element,
00083                         const SUMOSAXAttributes& attrs) ;
00085 
00086 
00087 private:
00089     NBTypeCont& myTypeCont;
00090 
00091 
00092     bool myHaveWarnedAboutDeprecatedNoLanes;
00093 
00094 private:
00096     NIXMLTypesHandler(const NIXMLTypesHandler& s);
00097 
00099     NIXMLTypesHandler& operator=(const NIXMLTypesHandler& s);
00100 
00101 
00102 };
00103 
00104 
00105 #endif
00106 
00107 /****************************************************************************/
00108 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines