/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2012-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 Route.h14/// @author Daniel Krajzewicz15/// @author Mario Krumnow16/// @author Michael Behrisch17/// @date 30.05.201218///19// C++ TraCI client API implementation20/****************************************************************************/21#pragma once22#include <vector>23#include <libsumo/TraCIDefs.h>242526// ===========================================================================27// class declarations28// ===========================================================================29#ifndef LIBTRACI30class MSRoute;31typedef std::shared_ptr<const MSRoute> ConstMSRoutePtr;32#endif333435// ===========================================================================36// class definitions37// ===========================================================================38/**39* @class Route40* @brief C++ TraCI client API implementation41*/42namespace LIBSUMO_NAMESPACE {43class Route {44public:4546static std::vector<std::string> getEdges(const std::string& routeID);4748LIBSUMO_ID_PARAMETER_API49LIBSUMO_SUBSCRIPTION_API5051static void add(const std::string& routeID, const std::vector<std::string>& edges);52static void remove(const std::string& routeID);5354#ifndef LIBTRACI55#ifndef SWIG56static std::shared_ptr<VariableWrapper> makeWrapper();5758static bool handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper, tcpip::Storage* paramData);5960private:61static ConstMSRoutePtr getRoute(const std::string& id);6263private:64static SubscriptionResults mySubscriptionResults;65static ContextSubscriptionResults myContextSubscriptionResults;66#endif67#endif6869/// @brief invalidated standard constructor70Route() = delete;71};727374}757677