LCOV - code coverage report
Current view: top level - src/netbuild - NBParking.h (source / functions) Coverage Total Hit
Test: lcov.info Lines: 100.0 % 1 1
Test Date: 2024-12-21 15:45:41 Functions: - 0 0

            Line data    Source code
       1              : /****************************************************************************/
       2              : // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
       3              : // Copyright (C) 2001-2024 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    NBParking.h
      15              : /// @author  Jakob Erdmann
      16              : /// @date    Tue, 14 Nov 2017
      17              : ///
      18              : // The representation of an imported parking area
      19              : /****************************************************************************/
      20              : #pragma once
      21              : #include <config.h>
      22              : 
      23              : #include <string>
      24              : #include "utils/common/Named.h"
      25              : 
      26              : 
      27              : // ===========================================================================
      28              : // class declarations
      29              : // ===========================================================================
      30              : class OutputDevice;
      31              : class NBEdgeCont;
      32              : class OptionsCont;
      33              : 
      34              : 
      35              : // ===========================================================================
      36              : // class definitions
      37              : // ===========================================================================
      38              : /**
      39              : * @class NBParking
      40              : * @brief The representation of an imported parking area
      41              : */
      42              : class NBParking : public Named {
      43              : 
      44              : public:
      45              :     /**@brief Constructor
      46              :     * @param[in] id The id of the parking area
      47              :     * @param[in] edgeId The edge id of the parking area
      48              :     * @param[in] name The optional verbose description of the parking area
      49              :     */
      50              :     NBParking(const std::string& id, const std::string& edgeID, const std::string& name = "");
      51              : 
      52              :     void write(OutputDevice& device, NBEdgeCont& ec) const;
      53              : 
      54              :     const std::string getEdgeID() const {
      55              :         return myEdgeID;
      56              :     }
      57              : 
      58              : private:
      59              :     std::string myEdgeID;
      60              :     std::string myName;
      61              : 
      62              : };
      63              : 
      64         2002 : class NBParkingCont : public std::vector<NBParking> {
      65              : 
      66              : public:
      67              :     /// @brief add edges that must be kept
      68              :     void addEdges2Keep(const OptionsCont& oc, std::set<std::string>& into);
      69              : };
        

Generated by: LCOV version 2.0-1