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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // A change in the values of Calibrators in netedit
18 /****************************************************************************/
19 #ifndef GNEChange_CalibratorItem_h
20 #define GNEChange_CalibratorItem_h
21 
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>
35 
36 #include "GNEChange.h"
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 
42 class GNECalibrator;
43 class GNECalibratorFlow;
44 class GNECalibratorRoute;
46 
47 // ===========================================================================
48 // class definitions
49 // ===========================================================================
55  FXDECLARE_ABSTRACT(GNEChange_CalibratorItem)
56 
57 public:
62  GNEChange_CalibratorItem(GNECalibratorFlow* calibratorFlow, bool forward);
63 
68  GNEChange_CalibratorItem(GNECalibratorRoute* calibratorRoute, bool forward);
69 
74  GNEChange_CalibratorItem(GNECalibratorVehicleType* calibratorVehicleType, bool forward);
75 
78 
82  FXString undoName() const;
83 
85  FXString redoName() const;
86 
88  void undo();
89 
91  void redo();
93 
94 private:
97 
100 
103 };
104 
105 #endif
106 /****************************************************************************/
FXString undoName() const
return undoName
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:48
GNECalibratorRoute * myCalibratorRoute
modified calibrator route
GNEChange_CalibratorItem(GNECalibratorFlow *calibratorFlow, bool forward)
Constructor.
GNECalibratorVehicleType * myCalibratorVehicleType
modified calibrator vehicle type
GNECalibratorFlow * myCalibratorFlow
modified calibrator flow
FXString redoName() const
get Redo name