Eclipse SUMO - Simulation of Urban MObility
GNEChange_EnableAttribute.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 the attribute of some object is modified
16 /****************************************************************************/
17 #ifndef GNEChange_EnableAttribute_h
18 #define GNEChange_EnableAttribute_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include "GNEChange.h"
27 
28 // ===========================================================================
29 // class declarations
30 // ===========================================================================
32 class GNENetElement;
33 class GNEAdditional;
34 class GNEDemandElement;
35 class GNEShape;
36 class GNENet;
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
46  FXDECLARE_ABSTRACT(GNEChange_EnableAttribute)
47 
48 public:
55  GNEChange_EnableAttribute(GNEAttributeCarrier* ac, GNENet* net, const int originalAttributes, const int newAttributes);
56 
59 
63  FXString undoName() const;
64 
66  FXString redoName() const;
67 
69  void undo();
70 
72  void redo();
74 
75 private:
80 
83 
85  const int myNewAttributes;
86 };
87 
88 #endif
89 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:43
FXString redoName() const
get Redo name
the function-object for an editing operation (abstract base)
const int myOriginalAttributes
original attributes
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:78
FXString undoName() const
return undoName
GNEChange_EnableAttribute(GNEAttributeCarrier *ac, GNENet *net, const int originalAttributes, const int newAttributes)
Constructor.
GNEAttributeCarrier * myAC
the net to which all operations shall be applied
An Element which don&#39;t belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:47
const int myNewAttributes
original attributes
An Element which don&#39;t belongs to GNENet but has influency in the simulation.