Path: blob/main/src/traci-server/TraCIServerAPI_InductionLoop.h
169665 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-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 TraCIServerAPI_InductionLoop.h14/// @author Daniel Krajzewicz15/// @author Michael Behrisch16/// @date 07.05.200917///18// APIs for getting/setting induction loop values via TraCI19/****************************************************************************/20#pragma once21#include <config.h>2223#include "TraCIServer.h"24#include <foreign/tcpip/storage.h>252627// ===========================================================================28// class definitions29// ===========================================================================30/**31* @class TraCIServerAPI_InductionLoop32* @brief APIs for getting/setting induction loop values via TraCI33*/34class TraCIServerAPI_InductionLoop {35public:36/** @brief Processes a get value command (Command 0xa0: Get Induction Loop Variable)37*38* @param[in] server The TraCI-server-instance which schedules this request39* @param[in] inputStorage The storage to read the command from40* @param[out] outputStorage The storage to write the result to41*/42static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,43tcpip::Storage& outputStorage);4445/** @brief Processes a set value command (Command 0xc0: Set Induction Loop Variable)46*47* @param[in] server The TraCI-server-instance which schedules this request48* @param[in] inputStorage The storage to read the command from49* @param[out] outputStorage The storage to write the result to50*/51static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,52tcpip::Storage& outputStorage);53545556private:57/// @brief invalidated copy constructor58TraCIServerAPI_InductionLoop(const TraCIServerAPI_InductionLoop& s);5960/// @brief invalidated assignment operator61TraCIServerAPI_InductionLoop& operator=(const TraCIServerAPI_InductionLoop& s);626364};656667