SUMO - Simulation of Urban MObility
GNEChange_Junction.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 network change in which a single junction is created or deleted
18 /****************************************************************************/
19 #ifndef GNEChange_Junction_h
20 #define GNEChange_Junction_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>
34 #include "GNEChange.h"
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class GNENet;
40 class GNEJunction;
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
49 class GNEChange_Junction : public GNEChange {
50  FXDECLARE_ABSTRACT(GNEChange_Junction)
51 
52 public:
57  GNEChange_Junction(GNEJunction* junction, bool forward);
58 
61 
65  FXString undoName() const;
66 
68  FXString redoName() const;
69 
71  void undo();
72 
74  void redo();
76 
77 
78 private:
83 };
84 
85 #endif
86 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:48
void undo()
undo action
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:91
~GNEChange_Junction()
Destructor.
GNEJunction * myJunction
full information regarding the junction that is to be created/deleted
FXString undoName() const
return undoName
FXString redoName() const
get Redo name
void redo()
redo action
GNEChange_Junction(GNEJunction *junction, bool forward)
Constructor for creating/deleting a junction.