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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // The representation of an imported parking area
18 /****************************************************************************/
19 #ifndef SUMO_NBParking_H
20 #define SUMO_NBParking_H
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #ifdef _MSC_VER
26 #include <windows_config.h>
27 #else
28 #include <config.h>
29 #endif
30 
31 #include <string>
32 #include "utils/common/Named.h"
33 
34 
35 // ===========================================================================
36 // class declarations
37 // ===========================================================================
38 class OutputDevice;
39 class NBEdgeCont;
40 class OptionsCont;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
50 class NBParking : public Named {
51 
52 public:
59  NBParking(const std::string& id, const std::string& edgeID, const std::string& name = "");
60 
61  void write(OutputDevice& device, NBEdgeCont& ec) const;
62 
63 private:
64  std::string myEdgeID;
65  std::string myName;
66 
67 };
68 
69 class NBParkingCont : public std::vector<NBParking> {
70 
71 public:
73  void addEdges2Keep(const OptionsCont& oc, std::set<std::string>& into);
74 };
75 
76 #endif //SUMO_NBParking_H
void write(OutputDevice &device, NBEdgeCont &ec) const
Definition: NBParking.cpp:48
The representation of a single pt stop.
Definition: NBParking.h:50
std::string myName
Definition: NBParking.h:65
Storage for edges, including some functionality operating on multiple edges.
Definition: NBEdgeCont.h:66
Base class for objects which have an id.
Definition: Named.h:45
A storage for options typed value containers)
Definition: OptionsCont.h:98
std::string myEdgeID
Definition: NBParking.h:64
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:70
NBParking(const std::string &id, const std::string &edgeID, const std::string &name="")
Constructor.
Definition: NBParking.cpp:41