/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2017-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 RouteProbe.cpp14/// @author Jakob Erdmann15/// @date 16.03.202016///17// C++ TraCI client API implementation18/****************************************************************************/19#include <config.h>2021#define LIBTRACI 122#include <libsumo/TraCIConstants.h>23#include <libsumo/RouteProbe.h>24#include "Domain.h"2526namespace libtraci {2728typedef Domain<libsumo::CMD_GET_ROUTEPROBE_VARIABLE, libsumo::CMD_SET_ROUTEPROBE_VARIABLE> Dom;293031// ===========================================================================32// static member definitions33// ===========================================================================34std::vector<std::string>35RouteProbe::getIDList() {36return Dom::getStringVector(libsumo::TRACI_ID_LIST, "");37}383940int41RouteProbe::getIDCount() {42return Dom::getInt(libsumo::ID_COUNT, "");43}4445std::string46RouteProbe::getEdgeID(const std::string& probeID) {47return Dom::getString(libsumo::VAR_ROAD_ID, probeID);48}4950std::string51RouteProbe::sampleLastRouteID(const std::string& probeID) {52return Dom::getString(libsumo::VAR_SAMPLE_LAST, probeID);53}5455std::string56RouteProbe::sampleCurrentRouteID(const std::string& probeID) {57return Dom::getString(libsumo::VAR_SAMPLE_CURRENT, probeID);58}596061LIBTRACI_PARAMETER_IMPLEMENTATION(RouteProbe, ROUTEPROBE)626364LIBTRACI_SUBSCRIPTION_IMPLEMENTATION(RouteProbe, ROUTEPROBE)656667}686970/****************************************************************************/717273