LCOV - code coverage report
Current view: top level - src/libsumo - MeanData.h (source / functions) Coverage Total Hit
Test: lcov.info Lines: 0.0 % 1 0
Test Date: 2026-10-12 15:53:19 Functions: - 0 0

            Line data    Source code
       1              : /****************************************************************************/
       2              : // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
       3              : // Copyright (C) 2012-2026 German Aerospace Center (DLR) and others.
       4              : // This program and the accompanying materials are made available under the
       5              : // terms of the Eclipse Public License 2.0 which is available at
       6              : // https://www.eclipse.org/legal/epl-2.0/
       7              : // This Source Code may also be made available under the following Secondary
       8              : // Licenses when the conditions for such availability set forth in the Eclipse
       9              : // Public License 2.0 are satisfied: GNU General Public License, version 2
      10              : // or later which is available at
      11              : // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
      12              : // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
      13              : /****************************************************************************/
      14              : /// @file    MeanData.h
      15              : /// @author  Jakob Erdmann
      16              : /// @date    16.03.2020
      17              : ///
      18              : // C++ TraCI client API implementation
      19              : /****************************************************************************/
      20              : #pragma once
      21              : #include <vector>
      22              : #include <libsumo/TraCIDefs.h>
      23              : 
      24              : 
      25              : // ===========================================================================
      26              : // class declarations
      27              : // ===========================================================================
      28              : #ifndef LIBTRACI
      29              : class MSMeanData;
      30              : #endif
      31              : 
      32              : 
      33              : // ===========================================================================
      34              : // class definitions
      35              : // ===========================================================================
      36              : /**
      37              :  * @class MeanData
      38              :  * @brief C++ TraCI client API implementation
      39              :  */
      40              : namespace LIBSUMO_NAMESPACE {
      41              : class MeanData {
      42              : public:
      43              :     static double getAttributeValue(const std::string& meanDataID, const std::string& laneID, const std::string& attr);
      44              :     static std::vector<std::string> getIDs(const std::string&meanDataID);
      45              :     static std::vector<double> getAttributeValues(const std::string& meanDataID, const std::string& attr);
      46              : 
      47              :     LIBSUMO_ID_PARAMETER_API
      48            0 :     LIBSUMO_SUBSCRIPTION_API
      49              : 
      50              : #ifndef LIBTRACI
      51              : #ifndef SWIG
      52              :     static std::shared_ptr<VariableWrapper> makeWrapper();
      53              : 
      54              :     static bool handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper, tcpip::Storage* paramData);
      55              : 
      56              : private:
      57              :     static MSMeanData* getMeanData(const std::string& id);
      58              : 
      59              : private:
      60              :     static SubscriptionResults mySubscriptionResults;
      61              :     static ContextSubscriptionResults myContextSubscriptionResults;
      62              : #endif
      63              : #endif
      64              : 
      65              :     /// @brief invalidated standard constructor
      66              :     MeanData() = delete;
      67              : };
      68              : 
      69              : 
      70              : }
        

Generated by: LCOV version 2.0-1