SUMO - Simulation of Urban MObility
GUIEvent_SimulationLoaded.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2002-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 /****************************************************************************/
20 // Event send when the simulation has been loaded by GUILadThread
21 /****************************************************************************/
22 #ifndef GUIEvent_SimulationLoaded_h
23 #define GUIEvent_SimulationLoaded_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <string>
36 #include <iostream>
38 #include <utils/common/SUMOTime.h>
39 
40 
41 // ===========================================================================
42 // class declarations
43 // ===========================================================================
44 class GUINet;
45 
46 
47 // ===========================================================================
48 // class definitions
49 // ===========================================================================
57 public:
60  SUMOTime startTime, SUMOTime endTime,
61  const std::string& file,
62  const std::vector<std::string>& settingsFiles,
63  const bool osgView)
65  myNet(net), myBegin(startTime), myEnd(endTime),
66  myFile(file), mySettingsFiles(settingsFiles),
67  myOsgView(osgView) {
68  }
69 
72 
73 public:
76 
79 
81  const SUMOTime myEnd;
82 
84  const std::string myFile;
85 
87  const std::vector<std::string> mySettingsFiles;
88 
90  const bool myOsgView;
91 
92 private:
95 };
96 
97 
98 #endif
99 
100 /****************************************************************************/
101 
const bool myOsgView
whether to load the OpenSceneGraph view
GUIEvent_SimulationLoaded(GUINet *net, SUMOTime startTime, SUMOTime endTime, const std::string &file, const std::vector< std::string > &settingsFiles, const bool osgView)
constructor
const SUMOTime myBegin
the time the simulation shall start with
GUIEvent_SimulationLoaded & operator=(const GUIEvent_SimulationLoaded &s)
Invalidated assignment operator.
const std::vector< std::string > mySettingsFiles
the name of the settings file to load
const std::string myFile
the name of the loaded file
A MSNet extended by some values for usage within the gui.
Definition: GUINet.h:88
send when a simulation has been loaded
Definition: GUIEvent.h:43
long long int SUMOTime
Definition: TraCIDefs.h:51
const SUMOTime myEnd
the time the simulation shall end with