1 /****************************************************************************/ 2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo 3 // Copyright (C) 2001-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 NWWriter_MATSim.h 11 /// @author Daniel Krajzewicz 12 /// @author Michael Behrisch 13 /// @date Tue, 04.05.2011 14 /// @version $Id$ 15 /// 16 // Exporter writing networks using the MATSim format 17 /****************************************************************************/ 18 #ifndef NWWriter_MATSim_h 19 #define NWWriter_MATSim_h 20 21 22 // =========================================================================== 23 // included modules 24 // =========================================================================== 25 #include <config.h> 26 27 #include <string> 28 #include <map> 29 #include <utils/xml/SUMOSAXHandler.h> 30 #include <utils/common/UtilExceptions.h> 31 32 33 // =========================================================================== 34 // class declarations 35 // =========================================================================== 36 class NBEdge; 37 class NBEdgeCont; 38 class NBNetBuilder; 39 class NBNode; 40 class NBNodeCont; 41 class NBTrafficLightLogicCont; 42 class NBTypeCont; 43 class OptionsCont; 44 45 46 // =========================================================================== 47 // class definitions 48 // =========================================================================== 49 /** 50 * @class NWWriter_MATSim 51 * @brief Exporter writing networks using the MATSim format 52 * 53 */ 54 class NWWriter_MATSim { 55 public: 56 /** @brief Writes the network into a MATSim-file 57 * 58 * @param[in] oc The options to use 59 * @param[in] nb The network builder to fill 60 */ 61 static void writeNetwork(const OptionsCont& oc, NBNetBuilder& nb); 62 63 }; 64 65 66 #endif 67 68 /****************************************************************************/ 69 70