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 // 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:
58  GNEChange_Junction(GNENet* net, GNEJunction* junction, bool forward);
59 
62 
63  FXString undoName() const;
64  FXString redoName() const;
65  void undo();
66  void redo();
67 
68 
69 private:
70 
75 };
76 
77 #endif
78 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:48
FXString redoName() const
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:77
~GNEChange_Junction()
Destructor.
GNEJunction * myJunction
full information regarding the junction that is to be created/deleted we assume shared responsibility...
GNEChange_Junction(GNENet *net, GNEJunction *junction, bool forward)
Constructor for creating/deleting a junction.
FXString undoName() const