Eclipse SUMO - Simulation of Urban MObility
GNEEvent_NetworkLoaded.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-2019 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 /****************************************************************************/
14 // Event to send when the network has been loaded by GNELoadThread
15 /****************************************************************************/
16 #ifndef GNEEvent_NetworkLoaded_h
17 #define GNEEvent_NetworkLoaded_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
26 
27 
28 // ===========================================================================
29 // class declarations
30 // ===========================================================================
31 class GNENet;
32 
33 
34 // ===========================================================================
35 // class definitions
36 // ===========================================================================
44 public:
47  const std::string& file,
48  const std::string& settingsFile,
49  const bool viewportFromRegistry)
51  myNet(net), myFile(file), mySettingsFile(settingsFile), myViewportFromRegistry(viewportFromRegistry) { }
52 
55 
56 public:
59 
61  std::string myFile;
62 
64  std::string mySettingsFile;
65 
68 };
69 
70 
71 #endif
72 
73 /****************************************************************************/
74 
GNEEvent_NetworkLoaded::GNEEvent_NetworkLoaded
GNEEvent_NetworkLoaded(GNENet *net, const std::string &file, const std::string &settingsFile, const bool viewportFromRegistry)
constructor
Definition: GNEEvent_NetworkLoaded.h:46
GNENet
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:77
GNEEvent_NetworkLoaded::myFile
std::string myFile
the name of the loaded file
Definition: GNEEvent_NetworkLoaded.h:61
GNEEvent_NetworkLoaded::myNet
GNENet * myNet
the loaded net
Definition: GNEEvent_NetworkLoaded.h:58
EVENT_SIMULATION_LOADED
send when a simulation has been loaded
Definition: GUIEvent.h:36
GNEEvent_NetworkLoaded::mySettingsFile
std::string mySettingsFile
the name of the settings file to load
Definition: GNEEvent_NetworkLoaded.h:64
GNEEvent_NetworkLoaded::~GNEEvent_NetworkLoaded
~GNEEvent_NetworkLoaded()
destructor
Definition: GNEEvent_NetworkLoaded.h:54
GNEEvent_NetworkLoaded::myViewportFromRegistry
bool myViewportFromRegistry
whether loading viewport from registry
Definition: GNEEvent_NetworkLoaded.h:67
GNEEvent_NetworkLoaded
Definition: GNEEvent_NetworkLoaded.h:43
GUIEvent
Definition: GUIEvent.h:76
GUIEvent.h
config.h