/****************************************************************************/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 Rerouter.h14/// @author Jakob Erdmann15/// @date 16.03.202016///17// C++ TraCI client API implementation18/****************************************************************************/19#pragma once20#include <vector>21#include <libsumo/TraCIDefs.h>222324// ===========================================================================25// class declarations26// ===========================================================================27#ifndef LIBTRACI28class MSTriggeredRerouter;29#endif303132// ===========================================================================33// class definitions34// ===========================================================================35/**36* @class Rerouter37* @brief C++ TraCI client API implementation38*/394041namespace LIBSUMO_NAMESPACE {42class Rerouter {43public:44LIBSUMO_ID_PARAMETER_API45LIBSUMO_SUBSCRIPTION_API4647#ifndef LIBTRACI48#ifndef SWIG49static std::shared_ptr<VariableWrapper> makeWrapper();5051static bool handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper, tcpip::Storage* paramData);5253private:54static MSTriggeredRerouter* getRerouter(const std::string& id);5556private:57static SubscriptionResults mySubscriptionResults;58static ContextSubscriptionResults myContextSubscriptionResults;59#endif60#endif61/// @brief invalidated standard constructor62Rerouter() = delete;63};646566}676869