SUMO - Simulation of Urban MObility
GNEChange_Edge.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // A network change in which a single edge 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_Edge_h
21 #define GNEChange_Edge_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 GNEEdge;
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
49 class GNEChange_Edge : public GNEChange {
50  FXDECLARE_ABSTRACT(GNEChange_Edge)
51 
52 public:
58  GNEChange_Edge(GNENet* net, GNEEdge* edge, bool forward);
59 
62 
63  FXString undoName() const;
64  FXString redoName() const;
65  void undo();
66  void redo();
67 
68 
69 private:
74 };
75 
76 #endif
77 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:48
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:77
FXString redoName() const
GNEChange_Edge(GNENet *net, GNEEdge *edge, bool forward)
Constructor for creating/deleting an edge.
FXString undoName() const
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:61
GNEEdge * myEdge
full information regarding the edge that is to be created/deleted we assume shared responsibility for...
~GNEChange_Edge()
Destructor.