1 /****************************************************************************/ 2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo 3 // Copyright (C) 2012-2019 German Aerospace Center (DLR) and others. 4 // This program and the accompanying materials 5 // are made available under the terms of the Eclipse Public License v2.0 6 // which accompanies this distribution, and is available at 7 // http://www.eclipse.org/legal/epl-v20.html 8 // SPDX-License-Identifier: EPL-2.0 9 /****************************************************************************/ 10 /// @file MSEmissionExport.h 11 /// @author Mario Krumnow 12 /// @date 2012-04-26 13 /// @version $Id$ 14 /// 15 // Realises dumping Emission Data 16 /****************************************************************************/ 17 #ifndef MSEmissionExport_h 18 #define MSEmissionExport_h 19 20 21 // =========================================================================== 22 // included modules 23 // =========================================================================== 24 #include <config.h> 25 26 #include <utils/common/SUMOTime.h> 27 28 29 // =========================================================================== 30 // class declarations 31 // =========================================================================== 32 class OutputDevice; 33 class MSEdgeControl; 34 class MSEdge; 35 class MSLane; 36 37 38 // =========================================================================== 39 // class definitions 40 // =========================================================================== 41 /** 42 * @class MSEmissionExport 43 * @brief Realises dumping Emission Data 44 * 45 * The class offers a static method, which writes all available emission factors 46 * of each vehicles of the network into the given OutputDevice. 47 * 48 * @todo consider error-handling on write (using IOError) 49 */ 50 class MSEmissionExport { 51 public: 52 /** @brief Writes the complete network state of the given edges into the given device 53 * 54 * Opens the current time step and export the emission factors of all availabel vehicles 55 * 56 * @param[in] of The output device to use 57 * @param[in] timestep The current time step 58 * @exception IOError If an error on writing occurs (!!! not yet implemented) 59 */ 60 static void write(OutputDevice& of, SUMOTime timestep, int precision); 61 62 63 private: 64 /// @brief Invalidated copy constructor. 65 MSEmissionExport(const MSEmissionExport&); 66 67 /// @brief Invalidated assignment operator. 68 MSEmissionExport& operator=(const MSEmissionExport&); 69 70 }; 71 72 73 #endif 74 75 /****************************************************************************/ 76