SUMO - Simulation of Urban MObility
GNEChange_CalibratorItem.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-2018 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 change in the values of Calibrators in netedit
16 /****************************************************************************/
17 #ifndef GNEChange_CalibratorItem_h
18 #define GNEChange_CalibratorItem_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <fx.h>
29 
30 #include "GNEChange.h"
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 
36 class GNECalibrator;
37 class GNECalibratorFlow;
38 class GNECalibratorRoute;
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
49  FXDECLARE_ABSTRACT(GNEChange_CalibratorItem)
50 
51 public:
56  GNEChange_CalibratorItem(GNECalibratorRoute* calibratorRoute, bool forward);
57 
62  GNEChange_CalibratorItem(GNECalibratorVehicleType* calibratorVehicleType, bool forward);
63 
66 
70  FXString undoName() const;
71 
73  FXString redoName() const;
74 
76  void undo();
77 
79  void redo();
81 
82 private:
85 };
86 
87 #endif
88 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:42
FXString redoName() const
get Redo name
GNECalibratorVehicleType * myCalibratorVehicleType
modified calibrator vehicle type
GNEChange_CalibratorItem(GNECalibratorRoute *calibratorRoute, bool forward)
Constructor.
FXString undoName() const
return undoName