SUMO - Simulation of Urban MObility
GNEChange_Additional.h
Go to the documentation of this file.
1 /****************************************************************************/
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
10 // Copyright (C) 2001-2013 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_Additional_h
21 #define GNEChange_Additional_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 <netbuild/NBEdge.h>
35 #include "GNEChange.h"
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class GNEAdditional;
41 class GNEViewNet;
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
51  FXDECLARE_ABSTRACT(GNEChange_Additional)
52 
53 public:
59  GNEChange_Additional(GNENet* net, GNEAdditional* additional, bool forward);
60 
63 
67  FXString undoName() const;
68 
70  FXString redoName() const;
71 
73  void undo();
74 
76  void redo();
78 
79 private:
82 };
83 
84 #endif
85 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:49
FXString redoName() const
get Redo name
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:87
~GNEChange_Additional()
Destructor.
FXString undoName() const
return undoName
GNEAdditional * myAdditional
full information regarding the additional element that is to be created/deleted
An Element which don&#39;t belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:63
GNEChange_Additional(GNENet *net, GNEAdditional *additional, bool forward)
Constructor for creating/deleting an additional element.