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-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 /****************************************************************************/
18 // Event send when the simulation has been loaded by GUILadThread
19 /****************************************************************************/
20 #ifndef GUIEvent_SimulationLoaded_h
21 #define GUIEvent_SimulationLoaded_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <string>
30 #include <iostream>
32 #include <utils/common/SUMOTime.h>
33 
34 
35 // ===========================================================================
36 // class declarations
37 // ===========================================================================
38 class GUINet;
39 
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
51 public:
54  SUMOTime startTime, SUMOTime endTime,
55  const std::string& file,
56  const std::vector<std::string>& settingsFiles,
57  const bool osgView)
59  myNet(net), myBegin(startTime), myEnd(endTime),
60  myFile(file), mySettingsFiles(settingsFiles),
61  myOsgView(osgView) {
62  }
63 
66 
67 public:
70 
73 
75  const SUMOTime myEnd;
76 
78  const std::string myFile;
79 
81  const std::vector<std::string> mySettingsFiles;
82 
84  const bool myOsgView;
85 
86 private:
89 };
90 
91 
92 #endif
93 
94 /****************************************************************************/
95 
long long int SUMOTime
Definition: SUMOTime.h:36
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:82
send when a simulation has been loaded
Definition: GUIEvent.h:37
const SUMOTime myEnd
the time the simulation shall end with