SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00010 // missing_desc 00011 /****************************************************************************/ 00012 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00013 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00014 /****************************************************************************/ 00015 // 00016 // This file is part of SUMO. 00017 // SUMO is free software: you can redistribute it and/or modify 00018 // it under the terms of the GNU General Public License as published by 00019 // the Free Software Foundation, either version 3 of the License, or 00020 // (at your option) any later version. 00021 // 00022 /****************************************************************************/ 00023 #ifndef RODFDetectorHandler_h 00024 #define RODFDetectorHandler_h 00025 00026 00027 // =========================================================================== 00028 // included modules 00029 // =========================================================================== 00030 #ifdef _MSC_VER 00031 #include <windows_config.h> 00032 #else 00033 #include <config.h> 00034 #endif 00035 00036 #include <string> 00037 #include <utils/xml/SUMOSAXHandler.h> 00038 #include <utils/options/OptionsCont.h> 00039 #include "RODFDetector.h" 00040 00041 00042 // =========================================================================== 00043 // class definitions 00044 // =========================================================================== 00049 class RODFDetectorHandler : public SUMOSAXHandler { 00050 public: 00052 RODFDetectorHandler(RODFNet* optNet, bool ignoreErrors, RODFDetectorCon& con, 00053 const std::string& file); 00054 00056 virtual ~RODFDetectorHandler() ; 00057 00058 protected: 00060 00061 00069 void myStartElement(int element, 00070 const SUMOSAXAttributes& attrs) ; 00072 00073 private: 00075 RODFNet* myNet; 00076 00078 bool myIgnoreErrors; 00079 00081 RODFDetectorCon& myContainer; 00082 00083 bool myHaveWarnedAboutDeprecatedDetectorDefinition; 00084 00085 00086 private: 00088 RODFDetectorHandler(const RODFDetectorHandler& src); 00089 00091 RODFDetectorHandler& operator=(const RODFDetectorHandler& src); 00092 00093 }; 00094 00095 00096 #endif 00097 00098 /****************************************************************************/ 00099