Eclipse SUMO - Simulation of Urban MObility
NBParking.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
14 // The representation of an imported parking area
15 /****************************************************************************/
16 #ifndef SUMO_NBParking_H
17 #define SUMO_NBParking_H
18 
19 // ===========================================================================
20 // included modules
21 // ===========================================================================
22 #include <config.h>
23 
24 #include <string>
25 #include "utils/common/Named.h"
26 
27 
28 // ===========================================================================
29 // class declarations
30 // ===========================================================================
31 class OutputDevice;
32 class NBEdgeCont;
33 class OptionsCont;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
43 class NBParking : public Named {
44 
45 public:
52  NBParking(const std::string& id, const std::string& edgeID, const std::string& name = "");
53 
54  void write(OutputDevice& device, NBEdgeCont& ec) const;
55 
56  const std::string getEdgeID() const {
57  return myEdgeID;
58  }
59 
60 private:
61  std::string myEdgeID;
62  std::string myName;
63 
64 };
65 
66 class NBParkingCont : public std::vector<NBParking> {
67 
68 public:
70  void addEdges2Keep(const OptionsCont& oc, std::set<std::string>& into);
71 };
72 
73 #endif //SUMO_NBParking_H
NBParking::myEdgeID
std::string myEdgeID
Definition: NBParking.h:61
NBParking::write
void write(OutputDevice &device, NBEdgeCont &ec) const
Definition: NBParking.cpp:41
NBParkingCont::addEdges2Keep
void addEdges2Keep(const OptionsCont &oc, std::set< std::string > &into)
add edges that must be kept
Definition: NBParking.cpp:79
Named
Base class for objects which have an id.
Definition: Named.h:56
NBEdgeCont
Storage for edges, including some functionality operating on multiple edges.
Definition: NBEdgeCont.h:60
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:63
NBParking::myName
std::string myName
Definition: NBParking.h:62
Named.h
NBParking::NBParking
NBParking(const std::string &id, const std::string &edgeID, const std::string &name="")
Constructor.
Definition: NBParking.cpp:34
NBParkingCont
Definition: NBParking.h:66
OptionsCont
A storage for options typed value containers)
Definition: OptionsCont.h:89
NBParking
The representation of a single pt stop.
Definition: NBParking.h:43
config.h
NBParking::getEdgeID
const std::string getEdgeID() const
Definition: NBParking.h:56