SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUILoadThread.h
Go to the documentation of this file.
1 /****************************************************************************/
10 // Class describing the thread that performs the loading of a simulation
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
13 // Copyright (C) 2002-2014 DLR (http://www.dlr.de/) and contributors
14 /****************************************************************************/
15 //
16 // This file is part of SUMO.
17 // SUMO is free software: you can redistribute it and/or modify
18 // it under the terms of the GNU General Public License as published by
19 // the Free Software Foundation, either version 3 of the License, or
20 // (at your option) any later version.
21 //
22 /****************************************************************************/
23 #ifndef GUILoadThread_h
24 #define GUILoadThread_h
25 
26 
27 // ===========================================================================
28 // included modules
29 // ===========================================================================
30 #ifdef _MSC_VER
31 #include <windows_config.h>
32 #else
33 #include <config.h>
34 #endif
35 
36 #include <utils/common/SUMOTime.h>
40 
41 
42 // ===========================================================================
43 // class declarations
44 // ===========================================================================
46 class MFXEventQue;
47 class GUINet;
48 
49 
50 // ===========================================================================
51 // class definitions
52 // ===========================================================================
57 public:
61 
63  virtual ~GUILoadThread();
64 
67  FXint run();
68 
70  void load(const std::string& file, bool isNet);
71 
73  void retrieveMessage(const MsgHandler::MsgType type, const std::string& msg);
74 
75  const std::string& getFileName() const;
76 
77 protected:
78  virtual bool initOptions();
79 
80 
86  void submitEndAndCleanup(GUINet* net, const SUMOTime simStartTime, const SUMOTime simEndTime,
87  const std::vector<std::string>& guiSettingsFiles = std::vector<std::string>(),
88  const bool osgView = false);
89 
90 protected:
93 
95  std::string myFile;
96 
100 
102 
104 
106  bool myLoadNet;
107 
108 };
109 
110 
111 #endif
112 
113 /****************************************************************************/