SUMO - Simulation of Urban MObility
GNEChange_RerouterItem.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-2018 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 // A change in the values of Rerouters in netedit
16 /****************************************************************************/
17 #ifndef GNEChange_RerouterItem_h
18 #define GNEChange_RerouterItem_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <fx.h>
29 
30 #include "GNEChange.h"
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 
36 class GNERerouter;
38 class GNEClosingReroute;
40 class GNEDestProbReroute;
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
52  FXDECLARE_ABSTRACT(GNEChange_RerouterItem)
53 
54 public:
59  GNEChange_RerouterItem(GNERerouterInterval* rerouterInterval, bool forward);
60 
65  GNEChange_RerouterItem(GNEClosingReroute* closingReroute, bool forward);
66 
71  GNEChange_RerouterItem(GNEClosingLaneReroute* closingLaneReroute, bool forward);
72 
77  GNEChange_RerouterItem(GNEDestProbReroute* destProbReroute, bool forward);
78 
83  GNEChange_RerouterItem(GNERouteProbReroute* routeProbReroute, bool forward);
84 
89  GNEChange_RerouterItem(GNEParkingAreaReroute* parkingAreaReroute, bool forward);
90 
93 
97  FXString undoName() const;
98 
100  FXString redoName() const;
101 
103  void undo();
104 
106  void redo();
108 
109 private:
112 
115 
118 
121 
124 
127 
128 };
129 
130 #endif
131 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:42
GNEDestProbReroute * myDestProbReroute
modified Closing Interval
FXString undoName() const
return undoName
FXString redoName() const
get Redo name
GNERouteProbReroute * myRouteProbReroute
modified Route Probability Reroute
GNEClosingLaneReroute * myClosingLaneReroute
modified Closing lane Reroute
GNEChange_RerouterItem(GNERerouterInterval *rerouterInterval, bool forward)
Constructor.
GNEParkingAreaReroute * myParkingAreaReroute
modified parkingAreaReroute
GNEClosingReroute * myClosingReroute
modified Closing Reroute
GNERerouterInterval * myRerouterInterval
modified rerouter interval