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-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 // A change in the values of Rerouters in netedit
18 /****************************************************************************/
19 #ifndef GNEChange_RerouterItem_h
20 #define GNEChange_RerouterItem_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <fx.h>
35 
36 #include "GNEChange.h"
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 
42 class GNERerouter;
44 class GNEClosingReroute;
46 class GNEDestProbReroute;
48 
49 // ===========================================================================
50 // class definitions
51 // ===========================================================================
57  FXDECLARE_ABSTRACT(GNEChange_RerouterItem)
58 
59 public:
64  GNEChange_RerouterItem(GNERerouterInterval* rerouterInterval, bool forward);
65 
70  GNEChange_RerouterItem(GNEClosingReroute* closingReroute, bool forward);
71 
76  GNEChange_RerouterItem(GNEClosingLaneReroute* closingLaneReroute, bool forward);
77 
82  GNEChange_RerouterItem(GNEDestProbReroute* destProbReroute, bool forward);
83 
88  GNEChange_RerouterItem(GNERouteProbReroute* routeProbReroute, bool forward);
89 
92 
96  FXString undoName() const;
97 
99  FXString redoName() const;
100 
102  void undo();
103 
105  void redo();
107 
108 private:
111 
114 
117 
120 
123 };
124 
125 #endif
126 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:48
GNEDestProbReroute * myDestProbReroute
modified Closing Interval
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.
GNEClosingReroute * myClosingReroute
modified Closing Reroute
FXString undoName() const
return undoName
GNERerouterInterval * myRerouterInterval
modified rerouter interval