SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIVehicleControl.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // The class responsible for building and deletion of vehicles (gui-version)
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef GUIVehicleControl_h
22 #define GUIVehicleControl_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <vector>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
42 class MFXMutex;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
59 public:
62 
63 
66 
67 
70 
85  const MSRoute* route, const MSVehicleType* type) ;
87 
88 
97  bool addVehicle(const std::string& id, SUMOVehicle* v) ;
98 
99 
107  void deleteVehicle(SUMOVehicle* v, bool discard=false);
108 
109 
114  void insertVehicleIDs(std::vector<GUIGlID> &into) ;
115 
116 
117 private:
119  mutable MFXMutex myLock;
120 
121 
122 private:
125 
128 
129 
130 };
131 
132 
133 #endif
134 
135 /****************************************************************************/
136