SUMO - Simulation of Urban MObility
GNEChange_Junction.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // A network change in which a single junction is created or deleted
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GNEChange_Junction_h
21 #define GNEChange_Junction_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <fx.h>
35 #include "GNEChange.h"
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class GNENet;
41 class GNEJunction;
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
50 class GNEChange_Junction : public GNEChange {
51  FXDECLARE_ABSTRACT(GNEChange_Junction)
52 
53 public:
59  GNEChange_Junction(GNENet* net, GNEJunction* junction, bool forward);
60 
63 
67  FXString undoName() const;
68 
70  FXString redoName() const;
71 
73  void undo();
74 
76  void redo();
78 
79 
80 private:
81 
86 };
87 
88 #endif
89 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:49
void undo()
undo action
FXString redoName() const
get Redo name
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:86
~GNEChange_Junction()
Destructor.
GNEJunction * myJunction
full information regarding the junction that is to be created/deleted we assume shared responsibility...
void redo()
redo action
GNEChange_Junction(GNENet *net, GNEJunction *junction, bool forward)
Constructor for creating/deleting a junction.
FXString undoName() const
return undoName