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 /****************************************************************************/
fxexdefs.h
GNENet
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:78
GNEChange_Junction::~GNEChange_Junction
~GNEChange_Junction()
Destructor.
Definition: GNEChange_Junction.cpp:47
GNEChange.h
GNEChange_Junction::undo
void undo()
undo action
Definition: GNEChange_Junction.cpp:59
GNEChange_Junction
Definition: GNEChange_Junction.h:43
GNEChange_Junction::myJunction
GNEJunction * myJunction
full information regarding the junction that is to be created/deleted
Definition: GNEChange_Junction.h:76
GNEChange_Junction::redoName
FXString redoName() const
get Redo name
Definition: GNEChange_Junction.cpp:105
GNEChange_Junction::GNEChange_Junction
GNEChange_Junction(GNEJunction *junction, bool forward)
Constructor for creating/deleting a junction.
Definition: GNEChange_Junction.cpp:39
config.h
GNEChange_Junction::undoName
FXString undoName() const
return undoName
Definition: GNEChange_Junction.cpp:95
GNEJunction
Definition: GNEJunction.h:48
GNEChange
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:43
GNEChange_Junction::redo
void redo()
redo action
Definition: GNEChange_Junction.cpp:77