Path: blob/main/src/netimport/vissim/tempstructs/NIVissimClosures.h
169684 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2002-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file NIVissimClosures.h14/// @author Daniel Krajzewicz15/// @author Michael Behrisch16/// @date Sept 200217///18// -------------------19/****************************************************************************/20#pragma once21#include <config.h>2223#include <string>24#include <map>252627// ===========================================================================28// class definitions29// ===========================================================================30/**31*32*/33class NIVissimClosures {34public:35NIVissimClosures(const std::string& id,36int from_node, int to_node,37std::vector<int>& overEdges);38~NIVissimClosures();39static bool dictionary(const std::string& id,40int from_node, int to_node, std::vector<int>& overEdges);41static bool dictionary(const std::string& name, NIVissimClosures* o);42static NIVissimClosures* dictionary(const std::string& name);43static void clearDict();44private:45typedef std::map<std::string, NIVissimClosures*> DictType;46static DictType myDict;47const std::string myID;48int myFromNode, myToNode;49std::vector<int> myOverEdges;5051private:52/// @brief invalidated copy constructor53NIVissimClosures(const NIVissimClosures& s);5455/// @brief invalidated assignment operator56NIVissimClosures& operator=(const NIVissimClosures& s);575859};606162