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 /****************************************************************************/
15 // The representation of an imported parking area
16 /****************************************************************************/
17 #ifndef SUMO_NBParking_H
18 #define SUMO_NBParking_H
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <string>
26 #include "utils/common/Named.h"
27 
28 
29 // ===========================================================================
30 // class declarations
31 // ===========================================================================
32 class OutputDevice;
33 class NBEdgeCont;
34 class OptionsCont;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
44 class NBParking : public Named {
45 
46 public:
53  NBParking(const std::string& id, const std::string& edgeID, const std::string& name = "");
54 
55  void write(OutputDevice& device, NBEdgeCont& ec) const;
56 
57 private:
58  std::string myEdgeID;
59  std::string myName;
60 
61 };
62 
63 class NBParkingCont : public std::vector<NBParking> {
64 
65 public:
67  void addEdges2Keep(const OptionsCont& oc, std::set<std::string>& into);
68 };
69 
70 #endif //SUMO_NBParking_H
NBParking::myEdgeID
std::string myEdgeID
Definition: NBParking.h:58
NBParking::write
void write(OutputDevice &device, NBEdgeCont &ec) const
Definition: NBParking.cpp:42
NBParkingCont::addEdges2Keep
void addEdges2Keep(const OptionsCont &oc, std::set< std::string > &into)
add edges that must be kept
Definition: NBParking.cpp:80
Named
Base class for objects which have an id.
Definition: Named.h:57
NBEdgeCont
Storage for edges, including some functionality operating on multiple edges.
Definition: NBEdgeCont.h:61
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:64
NBParking::myName
std::string myName
Definition: NBParking.h:59
Named.h
NBParking::NBParking
NBParking(const std::string &id, const std::string &edgeID, const std::string &name="")
Constructor.
Definition: NBParking.cpp:35
NBParkingCont
Definition: NBParking.h:63
OptionsCont
A storage for options typed value containers)
Definition: OptionsCont.h:90
NBParking
The representation of a single pt stop.
Definition: NBParking.h:44
config.h