Eclipse 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-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 // A network change in which a single junction is created or deleted
16 /****************************************************************************/
17 #ifndef GNEChange_Junction_h
18 #define GNEChange_Junction_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <fx.h>
28 #include "GNEChange.h"
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class GNENet;
34 class GNEJunction;
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
43 class GNEChange_Junction : public GNEChange {
44  FXDECLARE_ABSTRACT(GNEChange_Junction)
45 
46 public:
51  GNEChange_Junction(GNEJunction* junction, bool forward);
52 
55 
59  FXString undoName() const;
60 
62  FXString redoName() const;
63 
65  void undo();
66 
68  void redo();
70 
71 
72 private:
77 };
78 
79 #endif
80 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:43
void undo()
undo action
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:78
~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.