/****************************************************************************/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 OverheadWire.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 MSStoppingPlace;29#endif303132// ===========================================================================33// class definitions34// ===========================================================================35/**36* @class OverheadWire37* @brief C++ TraCI client API implementation38*/39namespace LIBSUMO_NAMESPACE {40class OverheadWire {41public:42static std::string getLaneID(const std::string& stopID);43static double getStartPos(const std::string& stopID);44static double getEndPos(const std::string& stopID);45static std::string getName(const std::string& stopID);46static int getVehicleCount(const std::string& stopID);47static std::vector<std::string> getVehicleIDs(const std::string& stopID);4849LIBSUMO_ID_PARAMETER_API50LIBSUMO_SUBSCRIPTION_API5152#ifndef LIBTRACI53#ifndef SWIG54static std::shared_ptr<VariableWrapper> makeWrapper();5556static bool handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper, tcpip::Storage* paramData);5758private:59static MSStoppingPlace* getOverheadWire(const std::string& id);6061private:62static SubscriptionResults mySubscriptionResults;63static ContextSubscriptionResults myContextSubscriptionResults;64#endif65#endif6667/// @brief invalidated standard constructor68OverheadWire() = delete;69};707172}737475